Commit ddb89db6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove spurious strdup

From: James Morris <jmorris@redhat.com>

AFS has an unused strdup() implementation.
parent 6c5703d5
...@@ -35,14 +35,6 @@ struct afs_mount_params { ...@@ -35,14 +35,6 @@ struct afs_mount_params {
struct afs_volume *volume; 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, static void afs_i_init_once(void *foo, kmem_cache_t *cachep,
unsigned long flags); unsigned long flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment