From: David S. Miller Date: Fri, 21 Aug 2015 18:38:41 +0000 (-0700) Subject: enic: Fix build failure with SRIOV disabled. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a69205c471221a7f9101df164642611e37c52e4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git enic: Fix build failure with SRIOV disabled. err_out_vnic_unregister is used regardless of whether SRIOV is enabled or not. Reported-by: Jesse Brandeburg Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index cb1fdc350bb2..3352d027ab89 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -2663,8 +2663,8 @@ err_out_disable_sriov_pp: 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);