vmxnet3: fix building without CONFIG_PCI_MSI
[pandora-kernel.git] / drivers / net / vmxnet3 / vmxnet3_drv.c
index f9c3325..28ceef2 100644 (file)
@@ -1733,13 +1733,16 @@ static void
 vmxnet3_netpoll(struct net_device *netdev)
 {
        struct vmxnet3_adapter *adapter = netdev_priv(netdev);
-       int i;
 
        switch (adapter->intr.type) {
-       case VMXNET3_IT_MSIX:
+#ifdef CONFIG_PCI_MSI
+       case VMXNET3_IT_MSIX: {
+               int i;
                for (i = 0; i < adapter->num_rx_queues; i++)
                        vmxnet3_msix_rx(0, &adapter->rx_queue[i]);
                break;
+       }
+#endif
        case VMXNET3_IT_MSI:
        default:
                vmxnet3_intr(0, adapter->netdev);