diff --git a/kernel/fork.c b/kernel/fork.c index 01ccc610991855144fafff82340ffc0af5c02bba..b6dd0bbf4240d7acec4af16c57e5d4f9cb330e8d 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -805,9 +805,6 @@ static struct mm_struct *dup_mm(struct task_struct *tsk) struct mm_struct *mm, *oldmm = current->mm; int err; - if (!oldmm) - return NULL; - mm = allocate_mm(); if (!mm) goto fail_nomem;