diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 19:22:22 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-08-30 15:18:59 -0700 |
commit | 681cd4a890e394b91b0b5df0d7f6095d3ae83193 (patch) | |
tree | 2d2a4344ecbe9967f1d1d4be69713f3e2016db0a /drivers/clk/qcom/clk-branch.c | |
parent | 5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff) | |
download | linux-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/qcom/clk-branch.c')
-rw-r--r-- | drivers/clk/qcom/clk-branch.c | 2 |
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); |