diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-12 01:01:57 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-12 01:01:57 -0700 |
| commit | dbb1a307d5ba76355030e7bb4200fbef1a659539 (patch) | |
| tree | 319c26dbc8d61c5c1acd26b65218b054415bb2b9 /include/asm-mips | |
| parent | ed459323250efe979acbbc6c34b91047b39c078c (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.h | 4 |
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 * |
