aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-12-30 15:03:21 +0000
committerStephen Boyd <[email protected]>2022-01-06 00:33:09 +0000
commit5c58585090a9ac3fbdf45ef584caa3a755b8ceda (patch)
tree16d8ce81903fd282de04fd178b3221122ca43700 /lib/string_helpers.c
parentclk: socfpga: remove redundant assignment on division (diff)
downloadkernel-5c58585090a9ac3fbdf45ef584caa3a755b8ceda.tar.gz
kernel-5c58585090a9ac3fbdf45ef584caa3a755b8ceda.zip
clk: socfpga: remove redundant assignment after a mask operation
The assignment operation after a & mask operation is redundant, the variables being assigned are not used afterwards. Replace the &= operator with just & operator. Cleans up two clang-scan warnings: drivers/clk/socfpga/clk-gate.c:37:10: warning: Although the value stored to 'l4_src' is used in the enclosing expression, the value is never actually read from 'l4_src' [deadcode.DeadStores] return l4_src &= 0x1; ^ ~~~ drivers/clk/socfpga/clk-gate.c:46:10: warning: Although the value stored to 'perpll_src' is used in the enclosing expression, the value is never actually read from 'perpll_src' [deadcode.DeadStores] return perpll_src &= 0x3; Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Dinh Nguyen <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions