Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Stephen Boyd
bab79506 31231092

+1 -1
+1 -1
drivers/clk/actions/owl-pll.c
··· 25 25 else if (mul > pll_hw->max_mul) 26 26 mul = pll_hw->max_mul; 27 27 28 - return mul &= mul_mask(pll_hw); 28 + return mul & mul_mask(pll_hw); 29 29 } 30 30 31 31 static unsigned long _get_table_rate(const struct clk_pll_table *table,