aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpqphp_core.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2022-03-13 14:29:32 -0500
committerBjorn Helgaas <bhelgaas@google.com>2022-03-22 11:24:40 -0500
commitaf8b8b6c044541430b287e549aeb5ffd622c8ac7 (patch)
tree93bd320b3337f26796b0b1b37eb300d85aeece22 /drivers/pci/hotplug/cpqphp_core.c
parentPCI: fu740: Remove unused assignments (diff)
downloadlinux-dev-af8b8b6c044541430b287e549aeb5ffd622c8ac7.tar.xz
linux-dev-af8b8b6c044541430b287e549aeb5ffd622c8ac7.zip
PCI: cpqphp: Remove unused assignments
Remove variables and assignments that are never used. Found by Krzysztof using cppcheck, e.g.: $ cppcheck --enable=all --force unreadVariable drivers/pci/hotplug/cpqphp_core.c:1257 Variable 'rc' is assigned a value that is never used. Reported-by: Krzysztof WilczyƄski <kw@linux.com> Link: https://lore.kernel.org/r/20220313192933.434746-5-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/cpqphp_core.c')
-rw-r--r--drivers/pci/hotplug/cpqphp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/cpqphp_core.c b/drivers/pci/hotplug/cpqphp_core.c
index f99a7927e5a8..c94b40e64baf 100644
--- a/drivers/pci/hotplug/cpqphp_core.c
+++ b/drivers/pci/hotplug/cpqphp_core.c
@@ -1254,7 +1254,7 @@ static void __exit unload_cpqphpd(void)
struct pci_resource *res;
struct pci_resource *tres;
- rc = compaq_nvram_store(cpqhp_rom_start);
+ compaq_nvram_store(cpqhp_rom_start);
ctrl = cpqhp_ctrl_list;