Commit 73a75b9d authored by Ralf Baechle's avatar Ralf Baechle Committed by Luis Henriques

MIPS: atomic: Fix comment describing atomic64_add_unless's return value.

commit f25319d2 upstream.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Fixes: f24219b4
(cherry picked from commit f0a232cde7be18a207fd057dd79bbac8a0a45dec)
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 3ffe1db4
...@@ -673,7 +673,7 @@ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) ...@@ -673,7 +673,7 @@ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v)
* @u: ...unless v is equal to u. * @u: ...unless v is equal to u.
* *
* Atomically adds @a to @v, so long as it was not @u. * Atomically adds @a to @v, so long as it was not @u.
* Returns the old value of @v. * Returns true iff @v was not @u.
*/ */
static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment