Commit 6bcfdc49 authored by Minghao Chi's avatar Minghao Chi Committed by Thomas Bogendoerfer
Browse files

mips/pci: remove redundant ret variable



Return value from rt3883_pci_r32() directly instead
of taking this in another redundant variable.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarCGEL ZTE <cgel.zte@gmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent a029ccc8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -102,14 +102,12 @@ static u32 rt3883_pci_read_cfg32(struct rt3883_pci_controller *rpc,
			       unsigned func, unsigned reg)
{
	u32 address;
	u32 ret;

	address = rt3883_pci_get_cfgaddr(bus, slot, func, reg);

	rt3883_pci_w32(rpc, address, RT3883_PCI_REG_CFGADDR);
	ret = rt3883_pci_r32(rpc, RT3883_PCI_REG_CFGDATA);

	return ret;
	return rt3883_pci_r32(rpc, RT3883_PCI_REG_CFGDATA);
}

static void rt3883_pci_write_cfg32(struct rt3883_pci_controller *rpc,