mips/pci: remove redundant ret variable
[linux-2.6-block.git] / arch / mips / pci / pci-rt3883.c
index d3c947fa296930d047695853109914046f956b9d..e07ae098bdd8cfd0441706c6a027e233e9c47de6 100644 (file)
@@ -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,