[PATCH] clk: fix boolreturn.cocci warnings
kbuild test robot
lkp at intel.com
Thu Sep 1 08:10:39 PDT 2016
drivers/clk/clk.c:123:9-10: WARNING: return of 0/1 in function 'clk_pm_runtime_suspended' 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: Marek Szyprowski <m.szyprowski at samsung.com>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---
clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -120,7 +120,7 @@ static void clk_pm_runtime_put(struct cl
static bool clk_pm_runtime_suspended(struct clk_core *core)
{
if (!core->dev)
- return 0;
+ return false;
return pm_runtime_suspended(core->dev);
}
More information about the linux-arm-kernel
mailing list