From: Felipe Contreras Date: Thu, 23 Jan 2014 23:54:34 +0000 (-0800) Subject: lib/kstrtox.c: remove redundant cleanup X-Git-Tag: MMI-PSA29.97-13-9~12891^2~99 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ae2924a2bdc5255745e68f2b9206404ddadfc5bf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git lib/kstrtox.c: 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 Acked-by: Levente Kurusa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/kstrtox.c b/lib/kstrtox.c index f78ae0c0c4e2..ec8da78df9be 100644 --- a/lib/kstrtox.c +++ b/lib/kstrtox.c @@ -92,7 +92,6 @@ static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) rv = _parse_integer(s, base, &_res); if (rv & KSTRTOX_OVERFLOW) return -ERANGE; - rv &= ~KSTRTOX_OVERFLOW; if (rv == 0) return -EINVAL; s += rv;