diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-10-17 00:09:57 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2015-11-27 15:48:21 +0300 |
commit | 3ce1b9beb44fb0f7cc06ca86bf316071d43b7384 (patch) | |
tree | 756bec9d5a99167e10841c176407a5e99e27e64d | |
parent | bf177657504c6091395f7dd7e5916770113df60b (diff) | |
download | linux-3ce1b9beb44fb0f7cc06ca86bf316071d43b7384.tar.xz |
MIPS: atomic: Fix comment describing atomic64_add_unless's return value.
commit f25319d2cb439249a6859f53ad42ffa332b0acba upstream.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Fixes: f24219b4e90cf70ec4a211b17fbabc725a0ddf3c
(cherry picked from commit f0a232cde7be18a207fd057dd79bbac8a0a45dec)
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | arch/mips/include/asm/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/atomic.h b/arch/mips/include/asm/atomic.h index 1d93f81d57e7..9d4581de3517 100644 --- a/arch/mips/include/asm/atomic.h +++ b/arch/mips/include/asm/atomic.h @@ -679,7 +679,7 @@ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) * @u: ...unless v is equal to 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) { |