PCI: designware: Remove unused variable
Subsystems (2)
PATCH 1/1 PCI: designware: Remove unused variable
From: Thierry Reding <[email protected]>
Commit 50a1a3b06ddd ("PCI: designware: Simplify control flow") removed all uses of the "ret" variable in the dw_pcie_wr_conf() function but not the variable itself. Do so now to get rid of an unused variable warning.
Signed-off-by Thierry Reding <[email protected]>
--- drivers/pci/host/pcie-designware.c | 1 - 1 file changed, 1 deletion(-)
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 ;
Signature · 1 line
2.5.0