]> git.baikalelectronics.ru Git - kernel.git/commit
lib/ts_bm.c: remove redundant store to variable consumed after addition
authorColin Ian King <colin.i.king@gmail.com>
Mon, 4 Jul 2022 21:53:25 +0000 (22:53 +0100)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:39 +0000 (17:31 -0700)
commit2f5f1ad680a1cab8f076d480418b0ab2a9b4b939
tree493e6ffe299afa54b221c00bdfdd76d39c57a1f0
parent46639c9f3eb653655e6dd5da42dadc482072a5a6
lib/ts_bm.c: remove redundant store to variable consumed after addition

There is no need to store the result of the addition back to variable
consumed after the addition.  The store is redundant, replace += with just
+

Cleans up clang scan build warning: lib/ts_bm.c:83:11: warning: Although
the value stored to 'consumed' is used in the enclosing expression, the
value is never actually read from 'consumed' [deadcode.DeadStores]

Link: https://lkml.kernel.org/r/20220704215325.600993-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/ts_bm.c