mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
3600f4ba35
commit
2fce775ec6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue