PCI/AER: Remove redundant dev->aer_cap checks
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Tue, 26 May 2020 23:18:26 +0000 (16:18 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Jun 2020 17:03:22 +0000 (12:03 -0500)
commitaf10cce7ad515aa819ee8a4ef6777c28b19ddfb7
tree024a13a5c63dec1c8212d06766774ef3523804d2
parent123f985aea0d603466518f041670d195eb2a4111
PCI/AER: Remove redundant dev->aer_cap checks

pcie_aer_get_firmware_first() checks dev->aer_cap, so we can remove
redundant dev->aer_cap checks in the callers.

Link: https://lore.kernel.org/r/d5ccc7a060ec9cdc234bdae7df8a0a4410f13f42.1590534843.git.sathyanarayanan.kuppuswamy@linux.intel.com
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c