From ddb89db636e57cf164956849b3ae2453fe8e4784 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 19 Jan 2004 05:14:54 -0800 Subject: [PATCH] [PATCH] remove spurious strdup From: James Morris AFS has an unused strdup() implementation. --- fs/afs/super.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fs/afs/super.c b/fs/afs/super.c index ac65a1fb6009c..c26b3ae970df8 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c @@ -35,14 +35,6 @@ struct afs_mount_params { 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); -- 2.53.0