diff options
author | avg <avg@FreeBSD.org> | 2017-10-19 07:21:23 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-10-19 07:21:23 +0000 |
commit | 710ee2444bc2871794a5f0a3bb7a1e3db1fbcfb3 (patch) | |
tree | af3146312c1f57473a606b4c0d8dea33694e7c5b /sys/cddl | |
parent | 21e3b2eb0aff9134adb81022fad8908b2abc1fc7 (diff) | |
download | FreeBSD-src-710ee2444bc2871794a5f0a3bb7a1e3db1fbcfb3.zip FreeBSD-src-710ee2444bc2871794a5f0a3bb7a1e3db1fbcfb3.tar.gz |
MFC r324309: remove heuristic error detection from ddi_strto*()
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c b/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c index 2708884..7846c00 100644 --- a/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c +++ b/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c @@ -41,10 +41,6 @@ ddi_strtol(const char *str, char **nptr, int base, long *result) { *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, unsigned long *result) } *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, unsigned long long *result) { *result = (unsigned long long)strtouq(str, nptr, base); - if (*result == 0) - return (EINVAL); - else if (*result == ULLONG_MAX) - return (ERANGE); return (0); } |