PCI: designware: remove unused variable
PATCH 1/1 PCI: designware: remove unused variable
A cleanup patch removed the only use of the 'ret' variable in wr_conf but forgot to remove the variable:
pci/host/pcie-designware.c: In function 'dw_pcie_wr_conf':pci/host/pcie-designware.c:683:6: warning: unused variable 'ret' [-Wunused-variable]
This cleans that part up as well.
Signed-off-by Arnd Bergmann <[email protected]>
Fixes 50a1a3b06ddd ("PCI: designware: Simplify control flow")
---
This came up this morning on linux-next with ARM randconfig builds
drivers/pci/host/pcie-designware.c +0 -1
@@ -680,7 +680,6 @@ static int dw_pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) { struct pcie_port *pp = bus->sysdata; -int ret;if (dw_pcie_valid_config (pp, bus,PCI_SLOT (devfn)) ==0 )return PCIBIOS_DEVICE_NOT_FOUND ;