Messages in this thread Patch in this message | | | Date | Thu, 15 Jan 2004 17:54:50 -0500 (EST) | From | James Morris <> | 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/
| |