From: Oleg Nesterov <oleg@redhat.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] kernel/fork.c : remove redundant NULL check in dup_mm()
Date: Thu, 28 Nov 2013 11:28:32 +0000 [thread overview]
Message-ID: <20131128112832.GA3343@redhat.com> (raw)
In-Reply-To: <1457075.dfc7RuZcNt@daeseok-laptop>
On 11/28, Daeseok Youn wrote:
>
> --- a/kernel/fork.c
> +++ b/kernel/fork.c
> @@ -804,9 +804,6 @@ 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;
Acked-by: Oleg Nesterov <oleg@redhat.com>
prev parent reply other threads:[~2013-11-28 11:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 6:18 [PATCH] kernel/fork.c : remove redundant NULL check in dup_mm() Daeseok Youn
2013-11-28 11:28 ` Oleg Nesterov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131128112832.GA3343@redhat.com \
--to=oleg@redhat.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.