ACPI/PCI: Remove useless NULL pointer checks
authorAndrey Strachuk <strochuk@ispras.ru>
Thu, 21 Jul 2022 14:11:33 +0000 (17:11 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Jul 2022 19:21:27 +0000 (21:21 +0200)
commit2c65e312bc6bb6e175c16a17db8ec86d2dcd1608
tree3bed30da82609a26db35dd5d4356350324ff71f0
parente0dccc3b76fb35bb257b4118367a883073d7390e
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: Andrey Strachuk <strochuk@ispras.ru>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_link.c