]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/fork.c: remove redundant NULL check in dup_mm()
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 23 Jan 2014 23:55:48 +0000 (15:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:02 +0000 (16:37 -0800)
commit29d428e65d13fb8a6e8191b85c7389e6e1c06132
tree6d11b7ba37a902af3640da2eeb7e1ab701e607ec
parentc6fdf7a3bac3856d6ea1b0612cfa1f4b3594def4
kernel/fork.c: remove redundant NULL check in dup_mm()

current->mm doesn't need a NULL check in dup_mm().  Becasue dup_mm() is
used only in copy_mm() and current->mm is checked whether it is NULL or
not in copy_mm() before calling dup_mm().

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c