PCI: shpchp: Remove unused 'rc' assignment
authorKrzysztof Wilczyński <kw@linux.com>
Wed, 23 Sep 2020 02:52:25 +0000 (02:52 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 28 Sep 2020 22:26:02 +0000 (17:26 -0500)
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>
drivers/pci/hotplug/shpchp_ctrl.c

index afdc52d..aedd9df 100644 (file)
@@ -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;
        }