projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fabb5bd
)
sparc: Fix __atomic_add_unless() return value.
author
Josip Rodin
<joy@entuzijast.net>
Thu, 4 Aug 2011 09:47:40 +0000
(
02:47
-0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 4 Aug 2011 09:47:40 +0000
(
02:47
-0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/lib/atomic32.c
patch
|
blob
|
history
diff --git
a/arch/sparc/lib/atomic32.c
b/arch/sparc/lib/atomic32.c
index 8600eb2461b5628f6569d731c5713944c8a1c242..1d32b54089aad3e3d6094f9d3d013b4f3664602b 100644
(file)
--- 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);