From: Dan Carpenter Date: Mon, 15 Mar 2010 08:21:48 +0000 (+0300) Subject: sched: Remove some dead code X-Git-Tag: v2.6.34.10~168 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=da8f69254125800b57279d6d96c63572088013fe;p=karo-tx-linux.git sched: Remove some dead code commit 6427462bfa50f50dc6c088c07037264fcc73eca1 upstream. This was left over from "7c9414385e sched: Remove USER_SCHED" Signed-off-by: Dan Carpenter Acked-by: Dhaval Giani Cc: Kay Sievers Cc: Greg Kroah-Hartman LKML-Reference: <20100315082148.GD18181@bicker> Signed-off-by: Ingo Molnar Signed-off-by: Paul Gortmaker --- diff --git a/kernel/user.c b/kernel/user.c index 766467b3bcb7..ec3b2229893b 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -178,8 +178,6 @@ struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid) return up; - put_user_ns(new->user_ns); - kmem_cache_free(uid_cachep, new); out_unlock: return NULL; }