Skip to content

Commit 09e3b18

Browse files
mripardbebarino
authored andcommitted
clk: bcm2835: Remove unused variable
Since commit 8ca011e ("clk: bcm-2835: Remove rounding up the dividers"), the rem variable is still set but no longer used. Remove it. Fixes: 8ca011e ("clk: bcm-2835: Remove rounding up the dividers") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20220222140732.253819-1-maxime@cerno.tech Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 6d6ef58 commit 09e3b18

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/clk/bcm/clk-bcm2835.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,10 +939,8 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw,
939939
u32 unused_frac_mask =
940940
GENMASK(CM_DIV_FRAC_BITS - data->frac_bits, 0) >> 1;
941941
u64 temp = (u64)parent_rate << CM_DIV_FRAC_BITS;
942-
u64 rem;
943942
u32 div, mindiv, maxdiv;
944943

945-
rem = do_div(temp, rate);
946944
div = temp;
947945
div &= ~unused_frac_mask;
948946

0 commit comments

Comments
 (0)