svn commit: r315021 - stable/10/sys/dev/acpica
Eric van Gyzen
vangyzen at FreeBSD.org
Fri Mar 10 19:34:16 UTC 2017
Author: vangyzen
Date: Fri Mar 10 19:34:14 2017
New Revision: 315021
URL: https://svnweb.freebsd.org/changeset/base/315021
Log:
MFC r313817
acpica: remove a superfluous NULL check
The address-of operator can't produce NULL (in practice).
Remove an unnecessary NULL check.
Sponsored by: Dell EMC
Modified:
stable/10/sys/dev/acpica/acpi_package.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/acpica/acpi_package.c
==============================================================================
--- stable/10/sys/dev/acpica/acpi_package.c Fri Mar 10 19:33:37 2017 (r315020)
+++ stable/10/sys/dev/acpica/acpi_package.c Fri Mar 10 19:34:14 2017 (r315021)
@@ -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;
More information about the svn-src-stable-10
mailing list