Message ID | 20110804094315.GA2005@entuzijast.net |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
From: Josip Rodin <joy@entuzijast.net> Date: Thu, 4 Aug 2011 11:43:15 +0200 > It should be fairly trivial: > > 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); Applied, thanks Josip. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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);