Skip to contentSkip to conversation

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

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Aug 5, 2018 – Aug 30, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/clk/qcom/clk-branch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/clk-branch.c +1 -1
index bc2205c..99446bf 100644
@@ -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);
 
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw

Quoting Gustavo A. R. Silva (2018-08-04 17:22:22)

Quoted 7 lines

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.

---

Applied to clk-next