diff options
author | Josip Rodin <joy@entuzijast.net> | 2011-08-04 02:47:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-04 02:47:40 -0700 |
commit | a61b582954183e93a3dc3a5cf6bfd2e2c3b40aba (patch) | |
tree | c4c413241f321dadf5427086d904f39790a2fcc3 /arch/sparc/lib/atomic32.c | |
parent | fabb5bd96d060da961d74531a0900da4da5ad2d4 (diff) | |
download | op-kernel-dev-a61b582954183e93a3dc3a5cf6bfd2e2c3b40aba.zip op-kernel-dev-a61b582954183e93a3dc3a5cf6bfd2e2c3b40aba.tar.gz |
sparc: Fix __atomic_add_unless() return value.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib/atomic32.c')
-rw-r--r-- | arch/sparc/lib/atomic32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c index 8600eb2..1d32b54 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); |