diff options
author | Andy Shevchenko | 2023-08-17 17:59:19 +0300 |
---|---|---|
committer | Andrew Morton | 2023-08-21 13:46:25 -0700 |
commit | 3d0b71398490fbf68f9c5766b6dce71eb89c4da0 (patch) | |
tree | aa8e8fe51c39ebb641088c9e15958967d25f205c /lib | |
parent | 5ffd2c37cb7a53d52099e5ed1fd7ccbc9e358791 (diff) |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kstrtox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kstrtox.c b/lib/kstrtox.c index 08c14019841a..d586e6af5e5a 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') |