[PATCH] s2io build fix
authorAndrew Morton <akpm@osdl.org>
Sun, 16 Oct 2005 07:11:29 +0000 (00:11 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 18 Oct 2005 22:33:42 +0000 (18:33 -0400)
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/s2io.c

index 30fbaf0..d303d16 100644 (file)
@@ -2997,7 +2997,7 @@ int s2io_set_swapper(nic_t * sp)
                 SWAPPER_CTRL_RXF_W_FE |
                 SWAPPER_CTRL_XMSI_FE |
                 SWAPPER_CTRL_STATS_FE | SWAPPER_CTRL_STATS_SE);
-       if (nic->intr_type == INTA)
+       if (sp->intr_type == INTA)
                val64 |= SWAPPER_CTRL_XMSI_SE;
        writeq(val64, &bar0->swapper_ctrl);
 #else