bcma: delete duplicate readl
authorNathan Hintz <nlhintz@hotmail.com>
Sat, 12 Jan 2013 10:46:13 +0000 (02:46 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jan 2013 20:10:40 +0000 (15:10 -0500)
The 'val' has already been read by the prior call to 'mips_busprobe32';
this 'readl' is unnecessary.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/driver_pci_host.c

index 37d1777..cf3dca9 100644 (file)
@@ -122,8 +122,6 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
                        val = 0xffffffff;
                        goto unmap;
                }
-
-               val = readl(mmio);
        }
        val >>= (8 * (off & 3));