]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
qlcnic: Fix usage of use_msi and use_msi_x module parameters
[~andy/linux] / drivers / net / ethernet / qlogic / qlcnic / qlcnic_main.c
index 149c4b6d340bea269bfceee46b98c5b69fd8e8ba..e10fc8e7fe22e1e50dc8d451c4c8067cc882c503 100644 (file)
@@ -3863,7 +3863,7 @@ int qlcnic_validate_rings(struct qlcnic_adapter *adapter, __u32 ring_cnt,
                strcpy(buf, "Tx");
        }
 
-       if (!qlcnic_use_msi_x && !qlcnic_use_msi) {
+       if (!QLCNIC_IS_MSI_FAMILY(adapter)) {
                netdev_err(netdev, "No RSS/TSS support in INT-x mode\n");
                return -EINVAL;
        }