Commit 09e3b18c authored by Maxime Ripard's avatar Maxime Ripard Committed by Stephen Boyd

clk: bcm2835: Remove unused variable

Since commit 8ca011ef ("clk: bcm-2835: Remove rounding up the
dividers"), the rem variable is still set but no longer used. Remove it.

Fixes: 8ca011ef ("clk: bcm-2835: Remove rounding up the dividers")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220222140732.253819-1-maxime@cerno.techReviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 6d6ef58c
...@@ -939,10 +939,8 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw, ...@@ -939,10 +939,8 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw,
u32 unused_frac_mask = u32 unused_frac_mask =
GENMASK(CM_DIV_FRAC_BITS - data->frac_bits, 0) >> 1; GENMASK(CM_DIV_FRAC_BITS - data->frac_bits, 0) >> 1;
u64 temp = (u64)parent_rate << CM_DIV_FRAC_BITS; u64 temp = (u64)parent_rate << CM_DIV_FRAC_BITS;
u64 rem;
u32 div, mindiv, maxdiv; u32 div, mindiv, maxdiv;
rem = do_div(temp, rate);
div = temp; div = temp;
div &= ~unused_frac_mask; div &= ~unused_frac_mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment