From: Andy Shevchenko Date: Thu, 17 Aug 2023 14:59:19 +0000 (+0300) Subject: kstrtox: consistently use _tolower() X-Git-Tag: v6.6.7~2072^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d0b71398490fbf68f9c5766b6dce71eb89c4da0;p=platform%2Fkernel%2Flinux-starfive.git kstrtox: consistently use _tolower() We already use _tolower() in other places, so convert the one which open codes it. Link: https://lkml.kernel.org/r/20230817145919.543251-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko Signed-off-by: Andrew Morton --- diff --git a/lib/kstrtox.c b/lib/kstrtox.c index 08c1401..d586e6a 100644 --- a/lib/kstrtox.c +++ b/lib/kstrtox.c @@ -59,7 +59,7 @@ unsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned lon rv = 0; while (max_chars--) { unsigned int c = *s; - unsigned int lc = c | 0x20; /* don't tolower() this line */ + unsigned int lc = _tolower(c); unsigned int val; if ('0' <= c && c <= '9')