aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <kw@linux.com>2020-09-23 02:52:25 +0000
committerBjorn Helgaas <bhelgaas@google.com>2020-09-28 17:26:02 -0500
commit23cce2e00b332a7f434fe9c9f2a9c07aaff2bcd7 (patch)
tree15c664b4eb56eca6ff08f491dfb0ec1ecca4eac0 /drivers/pci/hotplug
parentPCI: pciehp: Reduce noisiness on hot removal (diff)
downloadlinux-dev-23cce2e00b332a7f434fe9c9f2a9c07aaff2bcd7.tar.xz
linux-dev-23cce2e00b332a7f434fe9c9f2a9c07aaff2bcd7.zip
PCI: shpchp: Remove unused 'rc' assignment
The value of the constant POWER_FAILURE assigned to the variable rc after the power fault check is never used for anything, so remove it. Addresses-Coverity-ID: 1226899 ("Unused value") Link: https://lore.kernel.org/r/20200923025225.471459-1-kw@linux.com Signed-off-by: Krzysztof Wilczyński <kw@linux.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/shpchp_ctrl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_ctrl.c b/drivers/pci/hotplug/shpchp_ctrl.c
index afdc52d1cae7..aedd9dfd2a16 100644
--- a/drivers/pci/hotplug/shpchp_ctrl.c
+++ b/drivers/pci/hotplug/shpchp_ctrl.c
@@ -299,7 +299,6 @@ static int board_added(struct slot *p_slot)
if (p_slot->status == 0xFF) {
/* power fault occurred, but it was benign */
ctrl_dbg(ctrl, "%s: Power fault\n", __func__);
- rc = POWER_FAILURE;
p_slot->status = 0;
goto err_exit;
}