Date: Thu, 19 Oct 2017 07:21:24 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r324744 - stable/11/sys/cddl/compat/opensolaris/kern Message-ID: <201710190721.v9J7LOr9004157@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710190721.v9J7LOr9004157>