mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
enic: fix location of vnic dev unregister in enic_probe cleanup code
The vnic_dev_unregister is erroneously under CONFIG_PCI_IOV. This patch moves it out of CONFIG_PCI_IOV Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: Christian Benvenuti <benve@cisco.com> Signed-off-by: Sujith Sankar <ssujith@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ca2b721de2
commit
35d87e3325
1 changed files with 1 additions and 1 deletions
|
@ -2531,8 +2531,8 @@ err_out_disable_sriov_pp:
|
||||||
enic->priv_flags &= ~ENIC_SRIOV_ENABLED;
|
enic->priv_flags &= ~ENIC_SRIOV_ENABLED;
|
||||||
}
|
}
|
||||||
err_out_vnic_unregister:
|
err_out_vnic_unregister:
|
||||||
vnic_dev_unregister(enic->vdev);
|
|
||||||
#endif
|
#endif
|
||||||
|
vnic_dev_unregister(enic->vdev);
|
||||||
err_out_iounmap:
|
err_out_iounmap:
|
||||||
enic_iounmap(enic);
|
enic_iounmap(enic);
|
||||||
err_out_release_regions:
|
err_out_release_regions:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue