dect
/
linux-2.6
Archived
13
0
Fork 0

sparc: Fix __atomic_add_unless() return value.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Josip Rodin 2011-08-04 02:47:40 -07:00 committed by David S. Miller
parent fabb5bd96d
commit a61b582954
1 changed files with 1 additions and 1 deletions

View File

@ -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);