Skip to content

Commit 23cce2e

Browse files
kwilczynskibjorn-helgaas
authored andcommitted
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>
1 parent 8a61449 commit 23cce2e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/pci/hotplug/shpchp_ctrl.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ static int board_added(struct slot *p_slot)
299299
if (p_slot->status == 0xFF) {
300300
/* power fault occurred, but it was benign */
301301
ctrl_dbg(ctrl, "%s: Power fault\n", __func__);
302-
rc = POWER_FAILURE;
303302
p_slot->status = 0;
304303
goto err_exit;
305304
}

0 commit comments

Comments
 (0)