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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: + kstrtox-remove-redundant-cleanup.patch added to -mm tree
To: felipe.contreras@xxxxxxxxx,levex@xxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
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 <felipe.contreras@xxxxxxxxx>
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.

Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
Acked-by: Levente Kurusa <levex@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/kstrtox.c |    1 -
 1 file changed, 1 deletion(-)

diff -puN lib/kstrtox.c~kstrtox-remove-redundant-cleanup lib/kstrtox.c
--- a/lib/kstrtox.c~kstrtox-remove-redundant-cleanup
+++ a/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 felipe.contreras@xxxxxxxxx are

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

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux