]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fork: unshare: remove dead code
authorAlan Cox <alan@linux.intel.com>
Fri, 9 Nov 2012 03:05:04 +0000 (14:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Nov 2012 05:15:55 +0000 (16:15 +1100)
commit63707cb0411f2dcdc69f76548945cbfe94fbce6e
treece54e0fff74afff5891d078094bffcfb9715ed14
parent02a745b7ebf71a9cbafdc9a84d98e2219c601038
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