]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8abc1aa7a3fc422cc8615a278529219d783bdf7
tree3bed30da82609a26db35dd5d4356350324ff71f0
parentb7eabeb88edc837581d3d6c77c88f187f9f53a86
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