lib/ffz: remove dead store
PATCH 1/1 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 <[email protected]>
--- lib/ffz.h | 1 - 1 file changed, 1 deletion(-)
lib/ffz.h +0 -1
@@ -28,7 +28,6 @@ static inline int ffs64(uint64_t word) r +=2 ; }if (!(word &1 )) { - word >>=1 ; r +=1 ; }
Signature · 1 line
2.9.4
Quoted 22 lines · Daniel Verkamp
'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]>--- lib/ffz.h | 1 - 1 file changed, 1 deletion(-)lib/ffz.h +0
-2@@ -28,7 +28,6 @@ static inline int ffs64(uint64_t word) r +=2 ; }if (!(word &1 )) { - word >>=1 ; r +=1 ; } --
Quoted 1 line
2.9.4
Any thoughts on this one Jens (just checking it didn't slip through the net)?
Signature · 1 line
Sitsofe | http://sucs.org/~sits/
Quoted 22 lines · Sitsofe Wheeler
Quoted 21 lines · Daniel Verkamp
'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]>--- lib/ffz.h | 1 - 1 file changed, 1 deletion(-)lib/ffz.h +0
-1@@ -28,7 +28,6 @@ static inline int ffs64(uint64_t word) r +=2 ; }if (!(word &1 )) { - word >>=1 ; r +=1 ; }
Quoted 4 lines
Quoted 2 lines
--
2.9.4Any thoughts on this one Jens (just checking it didn't slip through the net)?
It did, thanks for bringing it to my attention - applied, thanks Daniel.
Signature · 1 line
Jens Axboe