summaryrefslogtreecommitdiff
path: root/include/asm-mips
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-12 01:01:57 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-12 01:01:57 -0700
commitdbb1a307d5ba76355030e7bb4200fbef1a659539 (patch)
tree319c26dbc8d61c5c1acd26b65218b054415bb2b9 /include/asm-mips
parented459323250efe979acbbc6c34b91047b39c078c (diff)
[PATCH] fix test_and_change_bit comment
From: Paul Jackson <pj@sgi.com> I've read over the code in each case, built and ran a test case for i386 in particular, and studied the other uses and definitions of test_and_change_bit(). Everything I see recommends this change. - Fix test_and_change_bit() comment: returns old value, not new one.
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/bitops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/bitops.h b/include/asm-mips/bitops.h
index 8a3d1a32505b..cb06e891d0aa 100644
--- a/include/asm-mips/bitops.h
+++ b/include/asm-mips/bitops.h
@@ -296,7 +296,7 @@ static inline int __test_and_clear_bit(unsigned long nr,
}
/*
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
* @nr: Bit to change
* @addr: Address to count from
*
@@ -567,7 +567,7 @@ static inline int __test_and_clear_bit(unsigned long nr,
}
/*
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
* @nr: Bit to change
* @addr: Address to count from
*