Commit 65c29b29 authored by David S. Miller's avatar David S. Miller

[SPARC]: OOPS, ffs return value is off by one :-)

parent a2cebad6
......@@ -267,7 +267,7 @@ static __inline__ int ffs(int x)
{
if (!x)
return 0;
return __ffs((unsigned long)x);
return __ffs((unsigned long)x) + 1;
}
/*
......
......@@ -146,7 +146,7 @@ static __inline__ int ffs(int x)
{
if (!x)
return 0;
return __ffs((unsigned long)x);
return __ffs((unsigned long)x) + 1;
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment