]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: pciehp: Remove unnecessary guard
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 8 Sep 2016 20:15:24 +0000 (15:15 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 14 Sep 2016 19:24:54 +0000 (14:24 -0500)
commitde35a00d24970223ed695aee2c5c86eb19f3e08e
tree0c5b10d519956058880ce6839849feb00021ed42
parent362a2bc242218a82d7a3768a4b9e4883848baeac
PCI: pciehp: Remove unnecessary guard

In pcie_isr(), we return early if no status bits other than
PCI_EXP_SLTSTA_CC are set.  This was introduced by cb83fc854201 ("pciehp:
fix NULL dereference in interrupt handler"), but it is no longer necessary
because all the subsequent pcie_isr() code is already predicated on a
status bit being set.

Remove the unnecessary test for ~PCI_EXP_SLTSTA_CC.  No functional change
intended.

Tested-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/hotplug/pciehp_hpc.c