crypto: cavium/nitrox - Fix sparse warnings
[sfrench/cifs-2.6.git] / drivers / crypto / cavium / nitrox / nitrox_main.c
index 9d14be97e3819d854b6b827a1a52b8d4614c7dd1..facc8e6bc58013cbdf48573ca7a94bf44357e416 100644 (file)
@@ -49,15 +49,6 @@ static unsigned int qlen = DEFAULT_CMD_QLEN;
 module_param(qlen, uint, 0644);
 MODULE_PARM_DESC(qlen, "Command queue length - default 2048");
 
-#ifdef CONFIG_PCI_IOV
-int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs);
-#else
-int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs)
-{
-       return 0;
-}
-#endif
-
 /**
  * struct ucode - Firmware Header
  * @id: microcode ID
@@ -555,10 +546,8 @@ static void nitrox_remove(struct pci_dev *pdev)
 
        nitrox_remove_from_devlist(ndev);
 
-#ifdef CONFIG_PCI_IOV
        /* disable SR-IOV */
        nitrox_sriov_configure(pdev, 0);
-#endif
        nitrox_crypto_unregister();
        nitrox_debugfs_exit(ndev);
        nitrox_pf_sw_cleanup(ndev);
@@ -584,9 +573,7 @@ static struct pci_driver nitrox_driver = {
        .probe = nitrox_probe,
        .remove = nitrox_remove,
        .shutdown = nitrox_shutdown,
-#ifdef CONFIG_PCI_IOV
        .sriov_configure = nitrox_sriov_configure,
-#endif
 };
 
 module_pci_driver(nitrox_driver);