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:
b6b76ba
)
UBI: do not support kiB
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 12:25:58 +0000
(14:25 +0200)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 17:15:18 +0000
(19:15 +0200)
Be strict and accept only KiB, MiB and GiB, not Kib, not kib, etc.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/build.c
b/drivers/mtd/ubi/build.c
index 5098e6d570927a5cc7b24670685b8b3f0a9019ef..b967191cc97e5dc827aefc5d0c9fcf74ffd32cca 100644
(file)
--- a/
drivers/mtd/ubi/build.c
+++ b/
drivers/mtd/ubi/build.c
@@
-1038,10
+1038,8
@@
static int __init bytes_str_to_int(const char *str)
case 'M':
result *= 1024;
case 'K':
- case 'k':
result *= 1024;
- if (endp[1] == 'i' && (endp[2] == '\0' ||
- endp[2] == 'B' || endp[2] == 'b'))
+ if (endp[1] == 'i' && endp[2] == 'B')
endp += 2;
case '\0':
break;