lkml.org 
[lkml]   [2004]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][AFS] remove spurious strdup
This is against 2.6.1-mm3.


diff -urN linux.orig/fs/afs/super.c linux.w/fs/afs/super.c
--- linux.orig/fs/afs/super.c 2003-09-27 20:50:17.000000000 -0400
+++ linux.w/fs/afs/super.c 2004-01-15 17:51:45.989733464 -0500
@@ -35,14 +35,6 @@
struct afs_volume *volume;
};

-static inline char *strdup(const char *s)
-{
- char *ns = kmalloc(strlen(s) + 1, GFP_KERNEL);
- if (ns)
- strcpy(ns, s);
- return ns;
-}
-
static void afs_i_init_once(void *foo, kmem_cache_t *cachep,
unsigned long flags);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.550 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site