[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51AEE53C.5050704@linux.vnet.ibm.com>
Date: Wed, 05 Jun 2013 15:14:04 +0800
From: Michael Wang <wangyun@...ux.vnet.ibm.com>
To: Tejun Heo <tj@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 4/3] workqueue: code refine in wqattrs_equal()
code refine to save some line.
CC: Tejun Heo <tj@...nel.org>
Signed-off-by: Michael Wang <wangyun@...ux.vnet.ibm.com>
---
kernel/workqueue.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index ee8e29a..5fd4791 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3417,9 +3417,8 @@ static bool wqattrs_equal(const struct workqueue_attrs *a,
{
if (a->nice != b->nice)
return false;
- if (!cpumask_equal(a->cpumask, b->cpumask))
- return false;
- return true;
+
+ return cpumask_equal(a->cpumask, b->cpumask);
}
/**
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists