Skip to contentSkip to conversation

PCI: designware: Remove unused variable

PATCH New Thierry Reding 1 participant 1 message Jan 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/pci/host/pcie-designware.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/host/pcie-designware.c +0 -1
index 9a666dbff127..21716827847a 100644
@@ -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