浏览代码

clk: qcom: clk-branch: Use true and false for boolean values

Return statements in functions returning bool should use true or false
instead of an integer value.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Gustavo A. R. Silva 7 年之前
父节点
当前提交
681cd4a890
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/clk/qcom/clk-branch.c

+ 1 - 1
drivers/clk/qcom/clk-branch.c

@@ -18,7 +18,7 @@ static bool clk_branch_in_hwcg_mode(const struct clk_branch *br)
 	u32 val;
 
 	if (!br->hwcg_reg)
-		return 0;
+		return false;
 
 	regmap_read(br->clkr.regmap, br->hwcg_reg, &val);