diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-07-04 22:53:25 +0100 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-17 17:31:39 -0700 |
commit | 4a70ce5f93aaeb0aa81f29c4a3c70f39d8f21087 (patch) | |
tree | 493e6ffe299afa54b221c00bdfdd76d39c57a1f0 /LICENSES | |
parent | 6d529ea80b8a03401195506f45c052c4937545d5 (diff) | |
download | linux-stable-4a70ce5f93aaeb0aa81f29c4a3c70f39d8f21087.tar.gz linux-stable-4a70ce5f93aaeb0aa81f29c4a3c70f39d8f21087.tar.bz2 linux-stable-4a70ce5f93aaeb0aa81f29c4a3c70f39d8f21087.zip |
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>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions