projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fa7e54
)
lib/bitmap.c: use hex_to_bin()
author
Andy Shevchenko
<
[email protected]
>
Tue, 26 Oct 2010 21:23:03 +0000
(14:23 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Oct 2010 23:52:18 +0000
(16:52 -0700)
Signed-off-by: Andy Shevchenko <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/bitmap.c
patch
|
blob
|
history
diff --git
a/lib/bitmap.c
b/lib/bitmap.c
index ffb78c916ccdf85ffb0d8ec7d0f3f1e4f41ab3ef..741fae905ae3ba8d81c0a4cbe9564cdd4e0d4ce7 100644
(file)
--- a/
lib/bitmap.c
+++ b/
lib/bitmap.c
@@
-359,7
+359,6
@@
EXPORT_SYMBOL(bitmap_find_next_zero_area);
#define CHUNKSZ 32
#define nbits_to_hold_value(val) fls(val)
-#define unhex(c) (isdigit(c) ? (c - '0') : (toupper(c) - 'A' + 10))
#define BASEDEC 10 /* fancier cpuset lists input in decimal */
/**
@@
-466,7
+465,7
@@
int __bitmap_parse(const char *buf, unsigned int buflen,
if (chunk & ~((1UL << (CHUNKSZ - 4)) - 1))
return -EOVERFLOW;
- chunk = (chunk << 4) |
unhex
(c);
+ chunk = (chunk << 4) |
hex_to_bin
(c);
ndigits++; totaldigits++;
}
if (ndigits == 0)