From: Dan Carpenter Date: Fri, 11 Feb 2011 06:04:45 +0000 (+0100) Subject: sched: Remove some dead code X-Git-Tag: firefly_0821_release~10186^2~457 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c3d5f1e87ec15d2d306779ffaf95150dc9146d74;p=firefly-linux-kernel-4.4.55.git sched: Remove some dead code commit 618765801ebc271fe0ba3eca99fcfd62a1f786e1 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: Mike Galbraith Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/user.c b/kernel/user.c index 65be394167ed..8e1c8c0a496c 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -170,8 +170,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; }