summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib
diff options
context:
space:
mode:
authorJosip Rodin <joy@entuzijast.net>2011-08-04 02:47:40 -0700
committerDavid S. Miller <davem@davemloft.net>2011-08-04 02:47:40 -0700
commita61b582954183e93a3dc3a5cf6bfd2e2c3b40aba (patch)
treec4c413241f321dadf5427086d904f39790a2fcc3 /arch/sparc/lib
parentfabb5bd96d060da961d74531a0900da4da5ad2d4 (diff)
sparc: Fix __atomic_add_unless() return value.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib')
-rw-r--r--arch/sparc/lib/atomic32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c
index 8600eb2461b..1d32b54089a 100644
--- a/arch/sparc/lib/atomic32.c
+++ b/arch/sparc/lib/atomic32.c
@@ -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);