Skip to content

Commit

Permalink
lib/ffz: remove dead store
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
danielverkamp authored and axboe committed Jun 27, 2017
1 parent bdb9665 commit 034ada8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ffz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 034ada8

Please sign in to comment.