summaryrefslogtreecommitdiffstats
path: root/include/asm-v850/bitops.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-v850/bitops.h')
-rw-r--r--include/asm-v850/bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-v850/bitops.h b/include/asm-v850/bitops.h
index 8955d23..609b9e8 100644
--- a/include/asm-v850/bitops.h
+++ b/include/asm-v850/bitops.h
@@ -188,7 +188,7 @@ static inline int find_next_zero_bit(const void *addr, int size, int offset)
tmp = *p;
found_first:
- tmp |= ~0UL >> size;
+ tmp |= ~0UL << size;
found_middle:
return result + ffz (tmp);
}
OpenPOWER on IntegriCloud