Loading lib/kstrtox.c +3 −6 Original line number Diff line number Diff line Loading @@ -49,13 +49,10 @@ static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) val = *s - '0'; else if ('a' <= _tolower(*s) && _tolower(*s) <= 'f') val = _tolower(*s) - 'a' + 10; else if (*s == '\n') { if (*(s + 1) == '\0') else if (*s == '\n' && *(s + 1) == '\0') break; else return -EINVAL; } else return -EINVAL; if (val >= base) return -EINVAL; Loading Loading
lib/kstrtox.c +3 −6 Original line number Diff line number Diff line Loading @@ -49,13 +49,10 @@ static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) val = *s - '0'; else if ('a' <= _tolower(*s) && _tolower(*s) <= 'f') val = _tolower(*s) - 'a' + 10; else if (*s == '\n') { if (*(s + 1) == '\0') else if (*s == '\n' && *(s + 1) == '\0') break; else return -EINVAL; } else return -EINVAL; if (val >= base) return -EINVAL; Loading