]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] pcnet32.c fix compile error
authorDon Fry <brazilnut@us.ibm.com>
Tue, 24 Feb 2004 14:29:26 +0000 (09:29 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 24 Feb 2004 14:29:26 +0000 (09:29 -0500)
Arrgh.  I sent the wrong diff file.  This one fixes the compile error I
introduced ;-(

drivers/net/pcnet32.c

index 74af820eb3feae0a939c7578f9f903351a5a4794..f7da45b36f4aefd4248e4e68976072e54652cb5e 100644 (file)
@@ -1518,7 +1518,7 @@ pcnet32_interrupt(int irq, void *dev_id, struct pt_regs * regs)
 
     rap = lp->a.read_rap(ioaddr);
     while ((csr0 = lp->a.read_csr (ioaddr, 0)) & 0x8600 && --boguscnt >= 0) {
-       if (csr == 0xffff) {
+       if (csr0 == 0xffff) {
            break;                      /* PCMCIA remove happened */
        }
        /* Acknowledge all of the current interrupt sources ASAP. */