sparc: Fix __atomic_add_unless() return value.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fabb5bd96d
commit
a61b582954
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ int __atomic_add_unless(atomic_t *v, int a, int u)
|
|||
if (ret != u)
|
||||
v->counter += a;
|
||||
spin_unlock_irqrestore(ATOMIC_HASH(v), flags);
|
||||
return ret != u;
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(__atomic_add_unless);
|
||||
|
||||
|
|
Loading…
Reference in a new issue