clk: bcm2835: Remove unused variable
Subsystems (3)
PATCH 1/1 clk: bcm2835: Remove unused variable
Since commit 8ca011ef4af4 ("clk: bcm-2835: Remove rounding up the dividers"), the rem variable is still set but no longer used. Remove it.
Fixes 8ca011ef4af4 ("clk: bcm-2835: Remove rounding up the dividers")
Reported-by kernel test robot <[email protected]>
Signed-off-by Maxime Ripard <[email protected]>
--- drivers/clk/bcm/clk-bcm2835.c | 2 -- 1 file changed, 2 deletions(-)
drivers/clk/bcm/clk-bcm2835.c +0 -2
@@ -939,10 +939,8 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw,u32 unused_frac_mask =GENMASK (CM_DIV_FRAC_BITS - data->frac_bits,0 ) >>1 ;u64 temp = (u64 )parent_rate <<CM_DIV_FRAC_BITS ; -u64 rem;u32 div, mindiv, maxdiv; - rem =do_div (temp, rate); div = temp; div &= ~unused_frac_mask;
Signature · 1 line
2.35.1
Quoted 6 lines · Maxime Ripard
Since commit
8ca011ef4af4("clk: bcm-2835: Remove rounding up the dividers"), the rem variable is still set but no longer used. Remove it.Fixes 8ca011ef4af4 ("clk: bcm-2835: Remove rounding up the dividers")Reported-by kernel test robot <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Signature · 1 line
Florian
Quoting Maxime Ripard (2022-02-22 06:07:32)
Quoted 7 lines
Since commit
8ca011ef4af4("clk: bcm-2835: Remove rounding up the dividers"), the rem variable is still set but no longer used. Remove it.Fixes 8ca011ef4af4 ("clk: bcm-2835: Remove rounding up the dividers")Reported-by kernel test robot <[email protected]>Signed-off-by Maxime Ripard <[email protected]>---
Applied to clk-next