]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
clk: qcom: clk-branch: Use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 5 Aug 2018 00:22:22 +0000 (19:22 -0500)
committerStephen Boyd <sboyd@kernel.org>
Thu, 30 Aug 2018 22:18:59 +0000 (15:18 -0700)
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>
drivers/clk/qcom/clk-branch.c

index bc2205c450b641c35194fc8d1b4b12b19ee072fc..99446bf630aaad4282669c25c73cf85fcd4f549a 100644 (file)
@@ -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);