mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-12 23:33:55 +08:00
clk: actions: remove redundant assignment after a mask operation
The assignment operation after a & mask operation is redundant, the &= operator can be replaced with just the & operator. Cleans up a clang-scan warning: drivers/clk/actions/owl-pll.c:28:9: warning: Although the value stored to 'mul' is used in the enclosing expression, the value is never actually read from 'mul' [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220418141537.83994-1-colin.i.king@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
3123109284
commit
bab79506fd
@ -25,7 +25,7 @@ static u32 owl_pll_calculate_mul(struct owl_pll_hw *pll_hw, unsigned long rate)
|
||||
else if (mul > pll_hw->max_mul)
|
||||
mul = pll_hw->max_mul;
|
||||
|
||||
return mul &= mul_mask(pll_hw);
|
||||
return mul & mul_mask(pll_hw);
|
||||
}
|
||||
|
||||
static unsigned long _get_table_rate(const struct clk_pll_table *table,
|
||||
|
Loading…
Reference in New Issue
Block a user