]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fork: unshare: remove dead code
authorAlan Cox <alan@linux.intel.com>
Thu, 29 Nov 2012 03:18:55 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:45 +0000 (16:23 +1100)
commit3983953e9eebe517d4679881642e898d4c47023e
tree53c7e3bdd18a2ca6b10e79713b07ac09b2ceaa51
parent798d3199d847d42fd5916147552e062308235ee8
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