Date: Thu, 16 Feb 2017 20:27:23 +0000 (UTC) From: Eric van Gyzen <vangyzen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313817 - head/sys/dev/acpica Message-ID: <201702162027.v1GKRNM1005994@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vangyzen Date: Thu Feb 16 20:27:22 2017 New Revision: 313817 URL: https://svnweb.freebsd.org/changeset/base/313817 Log: acpica: remove a superfluous NULL check The address-of operator can't produce NULL (in practice). Remove an unnecessary NULL check. MFC after: 3 days Sponsored by: Dell EMC Modified: head/sys/dev/acpica/acpi_package.c Modified: head/sys/dev/acpica/acpi_package.c ============================================================================== --- head/sys/dev/acpica/acpi_package.c Thu Feb 16 20:06:21 2017 (r313816) +++ head/sys/dev/acpica/acpi_package.c Thu Feb 16 20:27:22 2017 (r313817) @@ -50,7 +50,7 @@ acpi_PkgInt(ACPI_OBJECT *res, int idx, U ACPI_OBJECT *obj; obj = &res->Package.Elements[idx]; - if (obj == NULL || obj->Type != ACPI_TYPE_INTEGER) + if (obj->Type != ACPI_TYPE_INTEGER) return (EINVAL); *dst = obj->Integer.Value;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702162027.v1GKRNM1005994>