From: Geert Uytterhoeven Date: Mon, 17 Jun 2019 12:02:48 +0000 (+0200) Subject: clk: Simplify clk_core_can_round() X-Git-Tag: v5.3-rc1~59^2~2^4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eef1f1b6cff90ab7b24f9aaee11bbfeb1c7dc66b;p=thirdparty%2Fkernel%2Flinux.git clk: Simplify clk_core_can_round() 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 Reviewed-by: Jerome Brunet Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index aa51756fd4d69..c68bc5f695912 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -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,