]> git.baikalelectronics.ru Git - kernel.git/commit
fork: unshare: remove dead code
authorAlan Cox <alan@linux.intel.com>
Thu, 28 Feb 2013 01:03:23 +0000 (17:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:12 +0000 (19:10 -0800)
commit74778b21f503820c996973b4d1d8512a4ae28f23
tree983e4c0c901c7cc9364e109676597347b7c4ec65
parentb84c7d36952ac1b4f67f731358a88a4360a0309e
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c