Skip to content
Snippets Groups Projects
Commit a61b5829 authored by Josip Rodin's avatar Josip Rodin Committed by David S. Miller
Browse files

sparc: Fix __atomic_add_unless() return value.

parent fabb5bd9
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment