]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fork: unshare: remove dead code
authorAlan Cox <alan@linux.intel.com>
Thu, 7 Feb 2013 01:27:57 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:23 +0000 (16:47 +1100)
commitb98e0986cd55d034f3714578f8a260a188b6453f
tree38beb1a359d367d2e2c592e641053f1b5ab94e98
parentff6a9d1f3612158fa3fb6a20a6f04a7e1c5da0a0
fork: unshare: remove dead code

If new_nsproxy is set we will always call switch_task_namespaces and then
set new_nsproxy back to NULL so the reassignment and fall through check
are redundant

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/fork.c