Commit ae2924a2 authored by Felipe Contreras's avatar Felipe Contreras Committed by Linus Torvalds
Browse files

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: default avatarFelipe Contreras <>
Acked-by: default avatarLevente Kurusa <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 68585c41
......@@ -92,7 +92,6 @@ static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res)
rv = _parse_integer(s, base, &_res);
return -ERANGE;
if (rv == 0)
return -EINVAL;
s += rv;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment