]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MIPS: atomic: Fix comment describing atomic64_add_unless's return value.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 16 Oct 2015 21:09:57 +0000 (23:09 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Oct 2015 08:49:02 +0000 (09:49 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Fixes: f24219b4e90cf70ec4a211b17fbabc725a0ddf3c
(cherry picked from commit f0a232cde7be18a207fd057dd79bbac8a0a45dec)

arch/mips/include/asm/atomic.h

index 4c42fd9af7778462d18bea0724da19d2cdb35d4b..b347817522443fc6e9cd84672dee965885f0c2b7 100644 (file)
@@ -507,7 +507,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)
 {