PCI: shpchp: Make shpchp_unconfigure_device() void
authorKrzysztof Wilczynski <kw@linux.com>
Thu, 21 May 2020 19:04:57 +0000 (19:04 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 May 2020 20:23:20 +0000 (15:23 -0500)
commitcfbd83d02da73d984bee314ed3b96bdd3bbe7115
treefbc5740ded297d6f6ec8d2ff3291817aee775d92
parentadc9fbcd7d04a711b765e8f7f5c2e07cbbac0f20
PCI: shpchp: Make shpchp_unconfigure_device() void

shpchp_unconfigure_device() always returned 0, so there's no reason for a
return value.  In addition, remove_board() checked the return value for
possible error which is unnecessary.

Convert shpchp_unconfigure_device() to a void function and remove the
return value check.  This addresses the following Coccinelle warning:

  drivers/pci/hotplug/shpchp_pci.c:66:5-7: Unneeded variable: "rc".  Return "0" on line 86

Link: https://lore.kernel.org/r/20200521190457.1066600-1-kw@linux.com
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/shpchp.h
drivers/pci/hotplug/shpchp_ctrl.c
drivers/pci/hotplug/shpchp_pci.c