]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: Simplify clk_core_can_round()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 17 Jun 2019 12:02:48 +0000 (14:02 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 25 Jun 2019 21:50:45 +0000 (14:50 -0700)
A boolean expression already evaluates to true or false, so there is no
need to check the result and return true or false explicitly.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c

index aa51756fd4d695b359ee5c6117e7c9d00fddf183..c68bc5f695912bf5a9624c2cf11729fa4dabeb70 100644 (file)
@@ -1324,10 +1324,7 @@ static void clk_core_init_rate_req(struct clk_core * const core,
 
 static bool clk_core_can_round(struct clk_core * const core)
 {
-       if (core->ops->determine_rate || core->ops->round_rate)
-               return true;
-
-       return false;
+       return core->ops->determine_rate || core->ops->round_rate;
 }
 
 static int clk_core_round_rate_nolock(struct clk_core *core,