Skip to content

Commit

Permalink
kstrtox: consistently use _tolower()
Browse files Browse the repository at this point in the history
We already use _tolower() in other places, so convert the one which open
codes it.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
andy-shev authored and akpm00 committed Aug 21, 2023
1 parent 5ffd2c3 commit 3d0b713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kstrtox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 3d0b713

Please sign in to comment.