2004-01-15 22:54:56

by James Morris

[permalink] [raw]
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);