PCI: ibmphp: Remove unused assignments
authorBjorn Helgaas <bhelgaas@google.com>
Sun, 13 Mar 2022 19:29:33 +0000 (14:29 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 22 Mar 2022 16:24:48 +0000 (11:24 -0500)
commit6a8fcf7d47a0679a0fe4239c783224ceb559e661
tree738b638cd7f4264e1410a5bb806905e167358d3b
parentaf8b8b6c044541430b287e549aeb5ffd622c8ac7
PCI: ibmphp: 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/ibmphp_res.c:1958 Variable 'bus_sec' is assigned a value that is never used.

Reported-by: Krzysztof WilczyƄski <kw@linux.com>
Link: https://lore.kernel.org/r/20220313192933.434746-6-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/ibmphp_hpc.c
drivers/pci/hotplug/ibmphp_res.c