summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/find_bit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find_bit.c b/lib/find_bit.c
index d4b5a29e3e72..5a0066c26d9a 100644
--- a/lib/find_bit.c
+++ b/lib/find_bit.c
@@ -71,7 +71,7 @@ out: \
#define FIND_NTH_BIT(FETCH, size, num) \
({ \
- unsigned long sz = (size), nr = (num), idx, w, tmp; \
+ unsigned long sz = (size), nr = (num), idx, w, tmp = 0; \
\
for (idx = 0; (idx + 1) * BITS_PER_LONG <= sz; idx++) { \
if (idx * BITS_PER_LONG + nr >= sz) \