Skip to content

Commit 3d0b713

Browse files
andy-shevakpm00
authored andcommitted
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 5ffd2c3 commit 3d0b713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kstrtox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ unsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned lon
5959
rv = 0;
6060
while (max_chars--) {
6161
unsigned int c = *s;
62-
unsigned int lc = c | 0x20; /* don't tolower() this line */
62+
unsigned int lc = _tolower(c);
6363
unsigned int val;
6464

6565
if ('0' <= c && c <= '9')

0 commit comments

Comments
 (0)