projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ffd2c3
)
kstrtox: consistently use _tolower()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Thu, 17 Aug 2023 14:59:19 +0000
(17:59 +0300)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:46:25 +0000
(13:46 -0700)
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>
lib/kstrtox.c
patch
|
blob
|
history
diff --git
a/lib/kstrtox.c
b/lib/kstrtox.c
index 08c14019841af9df6d1c354b4503ecee4c7a9da0..d586e6af5e5a69fc5c6bc8d3005dfc85a403304f 100644
(file)
--- 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')