]> git.hungrycats.org Git - linux/commitdiff
[PATCH] wavelan uninitalised var.
authorDave Jones <davej@redhat.com>
Fri, 3 Sep 2004 18:13:22 +0000 (14:13 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 3 Sep 2004 18:13:22 +0000 (14:13 -0400)
This seems a little odd, printing out the value of a variable
we haven't read yet.

Signed-off-by: Dave Jones <davej@redhat.com>
drivers/net/wireless/wavelan.c

index 1cbd34ba5638597701a8c15c22cdd705f5859a45..3047d8cfa2b4c2b3438683bc7b5913dc749e4b96 100644 (file)
@@ -3822,17 +3822,18 @@ static irqreturn_t wavelan_interrupt(int irq, void *dev_id, struct pt_regs *regs
        if ((hasr & HASR_MMC_INTR) && (lp->hacr & HACR_MMC_INT_ENABLE)) {
                u8 dce_status;
 
-#ifdef DEBUG_INTERRUPT_ERROR
-               printk(KERN_INFO
-                      "%s: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n",
-                      dev->name, dce_status);
-#endif
                /*
                 * Interrupt from the modem management controller.
                 * This will clear it -- ignored for now.
                 */
                mmc_read(ioaddr, mmroff(0, mmr_dce_status), &dce_status,
                         sizeof(dce_status));
+
+#ifdef DEBUG_INTERRUPT_ERROR
+               printk(KERN_INFO
+                      "%s: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n",
+                      dev->name, dce_status);
+#endif
        }
 
        /* Check if not controller interrupt */