Skip to contentSkip to conversation

+ kstrtox-remove-redundant-cleanup.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 18, 2013 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + kstrtox-remove-redundant-cleanup.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 18 Nov 2013 15:46:51 -0800

The patch titled
Subject: kstrtox: remove redundant cleanup
has been added to the -mm tree. Its filename is
kstrtox-remove-redundant-cleanup.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kstrtox-remove-redundant-cleanup.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kstrtox-remove-redundant-cleanup.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Felipe Contreras <[email protected]>
Subject: kstrtox: remove redundant cleanup

We can't reach the cleanup code unless the flag KSTRTOX_OVERFLOW is not set, so there's not no point in clearing a bit that we know is not set.

---

 lib/kstrtox.c |    1 -
 1 file changed, 1 deletion(-)
lib/kstrtox.c renamed from lib/kstrtox.c~kstrtox-remove-redundant-cleanup +0 -1
diff -puN lib/kstrtox.c~kstrtox-remove-redundant-cleanup lib/kstrtox.c
@@ -92,7 +92,6 @@ static int _kstrtoull(const char *s, uns
 	rv = _parse_integer(s, base, &_res);
 	if (rv & KSTRTOX_OVERFLOW)
 		return -ERANGE;
-	rv &= ~KSTRTOX_OVERFLOW;
 	if (rv == 0)
 		return -EINVAL;
 	s += rv;

_

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

origin.patch
kstrtox-remove-redundant-cleanup.patch