diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2022-03-13 20:29:32 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-03-22 17:24:40 +0100 |
commit | af8b8b6c044541430b287e549aeb5ffd622c8ac7 (patch) | |
tree | 93bd320b3337f26796b0b1b37eb300d85aeece22 /drivers/pci/hotplug/cpqphp_pci.c | |
parent | PCI: fu740: Remove unused assignments (diff) | |
download | linux-af8b8b6c044541430b287e549aeb5ffd622c8ac7.tar.xz linux-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_pci.c')
-rw-r--r-- | drivers/pci/hotplug/cpqphp_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/cpqphp_pci.c b/drivers/pci/hotplug/cpqphp_pci.c index 9038039ad6db..3b248426a9f4 100644 --- a/drivers/pci/hotplug/cpqphp_pci.c +++ b/drivers/pci/hotplug/cpqphp_pci.c @@ -473,7 +473,7 @@ int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot) int sub_bus; int max_functions; int function = 0; - int cloop = 0; + int cloop; int stop_it; ID = 0xFFFFFFFF; |