Skip to content

Commit

Permalink
sparc: Fix __atomic_add_unless() return value.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Josip Rodin authored and David S. Miller committed Aug 4, 2011
1 parent fabb5bd commit a61b582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/lib/atomic32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a61b582

Please sign in to comment.