]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fork: unshare: remove dead code
authorAlan Cox <alan@linux.intel.com>
Thu, 15 Nov 2012 02:38:39 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:32:15 +0000 (17:32 +1100)
commitd00884da40ef6100e3670639b7eaa9b1643fc8b0
tree07a6beff516a1ab7d29a4260af39502259f0da4f
parent5ec2e63b8a2e6ddff5178373a013ef6d15dd1b34
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