PCI: cpqphp: Remove unused assignments
authorBjorn Helgaas <bhelgaas@google.com>
Sun, 13 Mar 2022 19:29:32 +0000 (14:29 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 22 Mar 2022 16:24:40 +0000 (11:24 -0500)
commitaf8b8b6c044541430b287e549aeb5ffd622c8ac7
tree93bd320b3337f26796b0b1b37eb300d85aeece22
parent6f102550728838f0f83123f193740c06fdfbdd62
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>
drivers/pci/hotplug/cpqphp_core.c
drivers/pci/hotplug/cpqphp_ctrl.c
drivers/pci/hotplug/cpqphp_pci.c