提交 6bcfdc49 编写于 作者: M Minghao Chi 提交者: Thomas Bogendoerfer

mips/pci: remove redundant ret variable

Return value from rt3883_pci_r32() directly instead
of taking this in another redundant variable.
Reported-by: NZeal Robot <zealci@zte.com.cn>
Signed-off-by: NMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: NCGEL ZTE <cgel.zte@gmail.com>
Signed-off-by: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
上级 a029ccc8
...@@ -102,14 +102,12 @@ static u32 rt3883_pci_read_cfg32(struct rt3883_pci_controller *rpc, ...@@ -102,14 +102,12 @@ static u32 rt3883_pci_read_cfg32(struct rt3883_pci_controller *rpc,
unsigned func, unsigned reg) unsigned func, unsigned reg)
{ {
u32 address; u32 address;
u32 ret;
address = rt3883_pci_get_cfgaddr(bus, slot, func, reg); address = rt3883_pci_get_cfgaddr(bus, slot, func, reg);
rt3883_pci_w32(rpc, address, RT3883_PCI_REG_CFGADDR); 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, static void rt3883_pci_write_cfg32(struct rt3883_pci_controller *rpc,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册