]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fork: unshare: remove dead code
authorAlan Cox <alan@linux.intel.com>
Sat, 3 Nov 2012 00:43:03 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:33 +0000 (15:15 +1100)
commitf11233d76b92ff3a517235395d0fd77f68de9269
tree255ec36a83f8b7059b8822f3ff85265ae7b321aa
parente89d77b2ba590f62e382543f9bbf550866fa25b9
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