]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/fork.c: remove redundant NULL check in dup_mm()
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 3 Jan 2014 03:10:30 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:30 +0000 (14:10 +1100)
commitdd95a346026545a2783906830845966bacf53d76
treea59f2468ac61e9c28394201e7167586cbe6ed41e
parentf717fc929f699efb5e3242c18c38dd7095e7a293
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>
kernel/fork.c