summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-04 19:22:22 -0500
committerStephen Boyd <sboyd@kernel.org>2018-08-30 15:18:59 -0700
commit681cd4a890e394b91b0b5df0d7f6095d3ae83193 (patch)
tree2d2a4344ecbe9967f1d1d4be69713f3e2016db0a /drivers/clk
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
downloadlinux-681cd4a890e394b91b0b5df0d7f6095d3ae83193.tar.bz2
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/qcom/clk-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/qcom/clk-branch.c b/drivers/clk/qcom/clk-branch.c
index bc2205c450b6..99446bf630aa 100644
--- a/drivers/clk/qcom/clk-branch.c
+++ b/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);