projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdb9665
)
lib/ffz: remove dead store
author
Daniel Verkamp
<daniel.verkamp@intel.com>
Tue, 27 Jun 2017 13:24:32 +0000
(07:24 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 27 Jun 2017 13:24:32 +0000
(07:24 -0600)
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 <daniel.verkamp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/ffz.h
patch
|
blob
|
blame
|
history
diff --git
a/lib/ffz.h
b/lib/ffz.h
index e2c1b8e94a39731fd2dbcfe6bebd8a19c69dd830..16c9ae9ebea8adaefbf11d6c51de26be71a9473b 100644
(file)
--- 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;
}