Skip to content
Commit 2c65e312 authored by Andrey Strachuk's avatar Andrey Strachuk Committed by Rafael J. Wysocki
Browse files

ACPI/PCI: Remove useless NULL pointer checks



Local variable 'p' is initialized by an address of field of acpi_resource,
so it does not make sense to compare 'p' with NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: default avatarAndrey Strachuk <strochuk@ispras.ru>
Reviewed-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e0dccc3b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment