]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
enic: Fix build failure with SRIOV disabled.
authorSujith Sankar <ssujith@cisco.com>
Tue, 13 Oct 2015 10:00:01 +0000 (15:30 +0530)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 19 Oct 2015 20:39:08 +0000 (13:39 -0700)
err_out_vnic_unregister is used regardless of whether
SRIOV is enabled or not.

Reported-by: Jesse Brandeburg <jesse.brangeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c

index cb1fdc350bb2b5fc700b3998af2cad6207c678cc..3352d027ab895c59195ef79bd322112964c21c75 100644 (file)
@@ -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);