]> 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>
Mon, 12 Nov 2012 04:17:29 +0000 (15:17 +1100)
commitb7e4fc7cd14b016b6ef73d0b1b6069fe73e2e3ca
treebf1a3a43b709a93e74b4d38e584b9d370751d199
parent72bea7aacb4590e8f18b0c26fa0ed33b63bf7d73
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