[PATCH] lib/ffz: remove dead store

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



'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@xxxxxxxxx>
---
 lib/ffz.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/ffz.h b/lib/ffz.h
index e2c1b8e..b98dad6 100644
--- a/lib/ffz.h
+++ b/lib/ffz.h
@@ -28,7 +28,6 @@ static inline int ffs64(uint64_t word)
 		r += 2;
 	}
 	if (!(word & 1)) {
-		word >>= 1;
 		r += 1;
 	}
 
-- 
2.9.4

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux