svn commit: r324744 - stable/11/sys/cddl/compat/opensolaris/kern
Andriy Gapon
avg at FreeBSD.org
Thu Oct 19 07:21:25 UTC 2017
Author: avg
Date: Thu Oct 19 07:21:23 2017
New Revision: 324744
URL: https://svnweb.freebsd.org/changeset/base/324744
Log:
MFC r324309: remove heuristic error detection from ddi_strto*()
Modified:
stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
==============================================================================
--- stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c Thu Oct 19 04:13:47 2017 (r324743)
+++ stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c Thu Oct 19 07:21:23 2017 (r324744)
@@ -41,10 +41,6 @@ ddi_strtol(const char *str, char **nptr, int base, lon
{
*result = strtol(str, nptr, base);
- if (*result == 0)
- return (EINVAL);
- else if (*result == LONG_MIN || *result == LONG_MAX)
- return (ERANGE);
return (0);
}
@@ -58,10 +54,6 @@ ddi_strtoul(const char *str, char **nptr, int base, un
}
*result = strtoul(str, nptr, base);
- if (*result == 0)
- return (EINVAL);
- else if (*result == ULONG_MAX)
- return (ERANGE);
return (0);
}
@@ -70,10 +62,6 @@ ddi_strtoull(const char *str, char **nptr, int base, u
{
*result = (unsigned long long)strtouq(str, nptr, base);
- if (*result == 0)
- return (EINVAL);
- else if (*result == ULLONG_MAX)
- return (ERANGE);
return (0);
}
More information about the svn-src-stable-11
mailing list