Message ID | 20160901151039.GA218917@lkp-ib03 (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
--- 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); }
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@samsung.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html