From 2fce775ec610840aef63bb252729a8b02494dafc Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Thu, 16 Feb 2017 20:27:22 +0000 Subject: [PATCH] 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 --- sys/dev/acpica/acpi_package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_package.c b/sys/dev/acpica/acpi_package.c index 448d35ba733..c7e79ab29e4 100644 --- a/sys/dev/acpica/acpi_package.c +++ b/sys/dev/acpica/acpi_package.c @@ -50,7 +50,7 @@ acpi_PkgInt(ACPI_OBJECT *res, int idx, UINT64 *dst) 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;