projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
at24: enable ACPI device found on Galileo Gen2
[firefly-linux-kernel-4.4.55.git]
/
lib
/
kstrtox.c
diff --git
a/lib/kstrtox.c
b/lib/kstrtox.c
index ec8da78df9be9f4ea245ff398193bd1d90210573..94be244e844103d0fb6ed20c7bee905ca908fa12 100644
(file)
--- a/
lib/kstrtox.c
+++ b/
lib/kstrtox.c
@@
-152,7
+152,7
@@
int kstrtoll(const char *s, unsigned int base, long long *res)
rv = _kstrtoull(s + 1, base, &tmp);
if (rv < 0)
return rv;
- if ((long long)
(-tmp) >=
0)
+ if ((long long)
-tmp >
0)
return -ERANGE;
*res = -tmp;
} else {