[PATCH] CRED: Delete alloc_creds() as it's not used

From: David Howells
Date: Mon Sep 22 2008 - 19:11:57 EST


Delete alloc_creds() as it's not used.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

kernel/cred-internals.h | 5 -----
kernel/cred.c | 15 ---------------
2 files changed, 0 insertions(+), 20 deletions(-)


diff --git a/kernel/cred-internals.h b/kernel/cred-internals.h
index f16312a..2dc4fc2 100644
--- a/kernel/cred-internals.h
+++ b/kernel/cred-internals.h
@@ -10,11 +10,6 @@
*/

/*
- * cred.c
- */
-extern struct cred *alloc_creds(const struct cred *, gfp_t);
-
-/*
* user.c
*/
static inline void sched_switch_user(struct task_struct *p)
diff --git a/kernel/cred.c b/kernel/cred.c
index a68a154..49ed76a 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -112,21 +112,6 @@ void __put_cred(struct cred *cred)
}
EXPORT_SYMBOL(__put_cred);

-/*
- * Allocate new credentials
- */
-struct cred *alloc_creds(const struct cred *old, gfp_t gfp)
-{
- struct cred *new;
-
- new = kmem_cache_alloc(cred_jar, GFP_KERNEL);
- if (!new)
- return NULL;
- if (old)
- memcpy(new, old, sizeof(struct cred));
- return new;
-}
-
/**
* prepare_creds - Prepare a new set of credentials for modification
*

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