From: Artem Bityutskiy Date: Wed, 26 Dec 2007 12:25:58 +0000 (+0200) Subject: UBI: do not support kiB X-Git-Tag: v2.6.25-rc1~296^2~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aeddb87718823fb81b896155b34d1bb4c8cae874;p=linux-2.6-omap-h63xx.git UBI: do not support kiB Be strict and accept only KiB, MiB and GiB, not Kib, not kib, etc. Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 5098e6d5709..b967191cc97 100644 --- 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;