Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2663,8 +2663,8 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
		pci_disable_sriov(pdev);
		enic->priv_flags &= ~ENIC_SRIOV_ENABLED;
	}
err_out_vnic_unregister:
#endif
err_out_vnic_unregister:
	vnic_dev_unregister(enic->vdev);
err_out_iounmap:
	enic_iounmap(enic);