提交 1a69205c 编写于 作者: D 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: NJesse Brandeburg <jesse.brangeburg@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a9e01ed9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册