be2net: fix wrong handling of be_setup() failure in be_probe()
authorSathya Perla <sathya.perla@emulex.com>
Fri, 28 Sep 2012 04:39:42 +0000 (04:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Sep 2012 06:15:34 +0000 (02:15 -0400)
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index fa1743036a8877f12e202410e8a010782f917115..b712091bc218363b17022f45cc29dffc1b8af430 100644 (file)
@@ -3889,7 +3889,7 @@ static int __devinit be_probe(struct pci_dev *pdev,
 
        status = be_setup(adapter);
        if (status)
-               goto msix_disable;
+               goto stats_clean;
 
        be_netdev_init(netdev);
        status = register_netdev(netdev);
@@ -3910,8 +3910,6 @@ static int __devinit be_probe(struct pci_dev *pdev,
 
 unsetup:
        be_clear(adapter);
-msix_disable:
-       be_msix_disable(adapter);
 stats_clean:
        be_stats_cleanup(adapter);
 ctrl_clean: