aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-12 01:03:29 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-12 01:03:29 -0700
commit8447ac2688647d261af7a7397a53548a2a1afc13 (patch)
tree037865f6ae88dc9a22fd0418870a714593ff16c8 /lib
parent6ab26f0a7443f4d4e2b13c31717088ad410cb64b (diff)
downloadhistory-8447ac2688647d261af7a7397a53548a2a1afc13.tar.gz
[PATCH] Rename bitmap_clear to bitmap_zero, remove CLEAR_BITMAP
From: Rusty Russell <rusty@rustcorp.com.au> clear_bit(n, addr) clears the nth bit. test_and_clear_bit(n, addr) clears the nth bit. cpu_clear(n, cpumask) clears the nth bit (vs. cpus_clear()). bitmap_clear(bitmap, n) clears out all the bits up to n. Moreover, there's a CLEAR_BITMAP() in linux/types.h which bitmap_clear() is a wrapper for. Rename bitmap_clear to bitmap_zero, which is harder to confuse (yes, it bit me), and make everyone use it.
Diffstat (limited to 'lib')
-rw-r--r--lib/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c
index 602b919ef5510f..779d30365e4617 100644
--- a/lib/bitmap.c
+++ b/lib/bitmap.c
@@ -273,7 +273,7 @@ int bitmap_parse(const char __user *ubuf, unsigned int ubuflen,
int c, old_c, totaldigits, ndigits, nchunks, nbits;
u32 chunk;
- bitmap_clear(maskp, nmaskbits);
+ bitmap_zero(maskp, nmaskbits);
nchunks = nbits = totaldigits = c = 0;
do {