Commit a61b5829 authored by Josip Rodin's avatar Josip Rodin Committed by David S. Miller

sparc: Fix __atomic_add_unless() return value.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fabb5bd9
...@@ -65,7 +65,7 @@ int __atomic_add_unless(atomic_t *v, int a, int u) ...@@ -65,7 +65,7 @@ int __atomic_add_unless(atomic_t *v, int a, int u)
if (ret != u) if (ret != u)
v->counter += a; v->counter += a;
spin_unlock_irqrestore(ATOMIC_HASH(v), flags); spin_unlock_irqrestore(ATOMIC_HASH(v), flags);
return ret != u; return ret;
} }
EXPORT_SYMBOL(__atomic_add_unless); EXPORT_SYMBOL(__atomic_add_unless);
......
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