Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53786
b: refs/heads/master
c: e48b30c
h: refs/heads/master
v: v3
  • Loading branch information
Ken Chen authored and Andi Kleen committed May 2, 2007
1 parent cfd95d6 commit 405f634
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30a1528d3bf444eac7f2886ba284da22114b2f7c
refs/heads/master: e48b30c189559e20e1f616faccae487972486320
4 changes: 2 additions & 2 deletions trunk/arch/i386/lib/bitops.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ EXPORT_SYMBOL(find_next_bit);
*/
int find_next_zero_bit(const unsigned long *addr, int size, int offset)
{
unsigned long * p = ((unsigned long *) addr) + (offset >> 5);
const unsigned long *p = addr + (offset >> 5);
int set = 0, bit = offset & 31, res;

if (bit) {
Expand All @@ -64,7 +64,7 @@ int find_next_zero_bit(const unsigned long *addr, int size, int offset)
/*
* No zero yet, search remaining full bytes for a zero
*/
res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr));
res = find_first_zero_bit(p, size - 32 * (p - addr));
return (offset + set + res);
}
EXPORT_SYMBOL(find_next_zero_bit);

0 comments on commit 405f634

Please sign in to comment.