Skip to contentSkip to conversation

kstrtox-delete-end-of-string-test.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 11, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/kstrtox.c: delete end-of-string test
has been removed from the -mm tree. Its filename was
kstrtox-delete-end-of-string-test.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Alexey Dobriyan <[email protected]>
Subject: lib/kstrtox.c: delete end-of-string test

Standard "while (*s)" test is unnecessary because NUL won't pass valid-digit test anyway. Save one branch per parsed character.

---

 lib/kstrtox.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kstrtox.c renamed from lib/kstrtox.c~kstrtox-delete-end-of-string-test +1 -1
diff -puN lib/kstrtox.c~kstrtox-delete-end-of-string-test lib/kstrtox.c
@@ -51,7 +51,7 @@ unsigned int _parse_integer(const char *
 
 	res = 0;
 	rv = 0;
-	while (*s) {
+	while (1) {
 		unsigned int val;
 
 		if ('0' <= *s && *s <= '9')

_

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

seq_file-delete-small-value-optimization.patch