MIPS: Whitespace cleanup.
[linux-drm-fsl-dcu.git] / arch / mips / sgi-ip22 / ip22-platform.c
index deddbf0ebe5c839175353b3f7f8cce68a594106c..a14fd32b76bdae03383e19e35ae71e663da1c802 100644 (file)
@@ -132,12 +132,12 @@ static struct platform_device eth1_device = {
  */
 static int __init sgiseeq_devinit(void)
 {
-       unsigned int tmp;
+       unsigned int pbdma __maybe_unused;
        int res, i;
 
        eth0_pd.hpc = hpc3c0;
        eth0_pd.irq = SGI_ENET_IRQ;
-#define EADDR_NVOFS     250
+#define EADDR_NVOFS    250
        for (i = 0; i < 3; i++) {
                unsigned short tmp = ip22_nvram_read(EADDR_NVOFS / 2 + i);
 
@@ -151,21 +151,21 @@ static int __init sgiseeq_devinit(void)
 
        /* Second HPC is missing? */
        if (ip22_is_fullhouse() ||
-           get_dbe(tmp, (unsigned int *)&hpc3c1->pbdma[1]))
+           get_dbe(pbdma, (unsigned int *)&hpc3c1->pbdma[1]))
                return 0;
 
        sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 |
-                        SGIMC_GIOPAR_HPC264;
+                        SGIMC_GIOPAR_HPC264;
        hpc3c1->pbus_piocfg[0][0] = 0x3ffff;
        /* interrupt/config register on Challenge S Mezz board */
        hpc3c1->pbus_extregs[0][0] = 0x30;
 
        eth1_pd.hpc = hpc3c1;
        eth1_pd.irq = SGI_GIO_0_IRQ;
-#define EADDR_NVOFS     250
+#define EADDR_NVOFS    250
        for (i = 0; i < 3; i++) {
                unsigned short tmp = ip22_eeprom_read(&hpc3c1->eeprom,
-                                                     EADDR_NVOFS / 2 + i);
+                                                     EADDR_NVOFS / 2 + i);
 
                eth1_pd.mac[2 * i]     = tmp >> 8;
                eth1_pd.mac[2 * i + 1] = tmp & 0xff;