Skip to contentSkip to conversation

lib-kstrtox-use-isdigit-in-_parse_integer_limit.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Oct 21

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib: kstrtox: use isdigit() in _parse_integer_limit()
has been removed from the -mm tree. Its filename was
lib-kstrtox-use-isdigit-in-_parse_integer_limit.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Thorsten Blum <[email protected]>
Subject: lib: kstrtox: use isdigit() in _parse_integer_limit()
Date: Tue, 13 Oct 2026 09:21:10 +0200

Use isdigit() to replace the open-coded implementation.

---

 lib/kstrtox.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kstrtox.c renamed from lib/kstrtox.c~lib-kstrtox-use-isdigit-in-_parse_integer_limit +1 -1
@@ -69,7 +69,7 @@ unsigned int _parse_integer_limit(const
 		unsigned int lc = _tolower(c);
 		unsigned int val;
 
-		if ('0' <= c && c <= '9')
+		if (isdigit(c))
 			val = c - '0';
 		else if ('a' <= lc && lc <= 'f')
 			val = lc - 'a' + 10;

_

Patches currently in -mm which might be from [email protected] are