[PATCH] sched: Simplify task_group_is_autogroup

From: Sisir Koppaka
Date: Sun Dec 18 2011 - 05:12:55 EST


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@xxxxxxxxx>
---
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;
}

extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
--
1.7.7.4


                sk
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/