提交 a61b5829 编写于 作者: J Josip Rodin 提交者: David S. Miller

sparc: Fix __atomic_add_unless() return value.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 fabb5bd9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册