From: Daniel Verkamp Date: Tue, 27 Jun 2017 13:24:32 +0000 (-0600) Subject: lib/ffz: remove dead store X-Git-Tag: fio-2.99~24 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=034ada869882efb9dcd340648bc8bcc9e9a4215e;ds=sidebyside lib/ffz: remove dead store word' is written in the last 'if' block but never read again. This is harmless, but scan-build (clang-analyzer) flags it as a warning. Signed-off-by: Daniel Verkamp Signed-off-by: Jens Axboe --- diff --git a/lib/ffz.h b/lib/ffz.h index e2c1b8e9..16c9ae9e 100644 --- a/lib/ffz.h +++ b/lib/ffz.h @@ -27,10 +27,8 @@ static inline int ffs64(uint64_t word) word >>= 2; r += 2; } - if (!(word & 1)) { - word >>= 1; + if (!(word & 1)) r += 1; - } return r; }