From: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
To: Sisir Koppaka <sisir.koppaka@gmail.com>,
Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sched: Simplify task_group_is_autogroup
Date: Sun, 18 Dec 2011 17:15:31 +0530 [thread overview]
Message-ID: <8762heumqs.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAJd0RV=NdYFY8sLnB5EQY9wiWm+0U0C3EaCmKE8jpunHdYkcAA@mail.gmail.com>
On Sun, 18 Dec 2011 15:42:53 +0530, Sisir Koppaka <sisir.koppaka@gmail.com> wrote:
> Removing the !! in task_group_is_autogroup doesn't impede functionality.
>
> Tested with and without CONFIG_SCHED_AUTOGROUP.
>
> Signed-off-by: Sisir Koppaka <sisir.koppaka@gmail.com>
> ---
> kernel/sched/auto_group.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/sched/auto_group.h b/kernel/sched/auto_group.h
> index 8bd0471..f628798 100644
> --- a/kernel/sched/auto_group.h
> +++ b/kernel/sched/auto_group.h
> @@ -21,7 +21,7 @@ extern void autogroup_free(struct task_group *tg);
>
> static inline bool task_group_is_autogroup(struct task_group *tg)
> {
> - return !!tg->autogroup;
> + return tg->autogroup;
>
The return is supposed to be a boolean. So the code is correct.
Regards,
Nikunj
prev parent reply other threads:[~2011-12-18 11:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-18 10:12 Sisir Koppaka
2011-12-18 11:45 ` Nikunj A Dadhania [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=8762heumqs.fsf@linux.vnet.ibm.com \
--to=nikunj@linux.vnet.ibm.com \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=sisir.koppaka@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome