Commit 1a69205c authored by David S. Miller's avatar David S. Miller

enic: Fix build failure with SRIOV disabled.

err_out_vnic_unregister is used regardless of whether
SRIOV is enabled or not.
Reported-by: default avatarJesse Brandeburg <jesse.brangeburg@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a9e01ed9
...@@ -2663,8 +2663,8 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -2663,8 +2663,8 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
pci_disable_sriov(pdev); pci_disable_sriov(pdev);
enic->priv_flags &= ~ENIC_SRIOV_ENABLED; enic->priv_flags &= ~ENIC_SRIOV_ENABLED;
} }
err_out_vnic_unregister:
#endif #endif
err_out_vnic_unregister:
vnic_dev_unregister(enic->vdev); vnic_dev_unregister(enic->vdev);
err_out_iounmap: err_out_iounmap:
enic_iounmap(enic); enic_iounmap(enic);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment