projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delayacct: align to 8 byte boundary on 64-bit systems
[deliverable/linux.git]
/
lib
/
bitmap.c
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 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 */
/**
#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;
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)
ndigits++; totaldigits++;
}
if (ndigits == 0)
This page took
0.028714 seconds
and
5
git commands to generate.