From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] cgroup: fix boolreturn.cocci warnings Date: Tue, 15 Mar 2016 07:13:31 +0800 Message-ID: <20160314231331.GA78584@athens> References: <201603150743.aoBp9zoQ%fengguang.wu@intel.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1457994978-1057495-1-git-send-email-arnd-r2nGTMty4D4@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Arnd Bergmann Cc: kbuild-all-JC7UmRfGjtg@public.gmane.org, Tejun Heo , Li Zefan , Johannes Weiner , Arnd Bergmann , Aditya Kali , Aleksa Sarai , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org kernel/cgroup.c:262:9-10: WARNING: return of 0/1 in function 'cgroup_ssid_enabled' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Arnd Bergmann Signed-off-by: Fengguang Wu --- cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -259,7 +259,7 @@ static int cgroup_addrm_files(struct cgr static bool cgroup_ssid_enabled(int ssid) { if (CGROUP_SUBSYS_COUNT == 0) - return 0; + return false; return static_key_enabled(cgroup_subsys_enabled_key[ssid]); }