]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
scsi: fcoe: Remove an extra out label in _fcoe_create function
authorMilan P. Gandhi <mgandhi@redhat.com>
Thu, 1 Jun 2017 12:08:55 +0000 (17:38 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:05 +0000 (20:48 -0400)
This patch removes an extra out label in _fcoe_create function where we
return if creation of FCOE interface is failed.

Signed-off-by: Milan P. Gandhi <mgandhi@redhat.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe.c

index 7b960d3293b76650af4716aaa91b676c3788e5d1..ea21e7bb7ef5c0ad141b326fd7dca3dbf60a9862 100644 (file)
@@ -2258,7 +2258,7 @@ static int _fcoe_create(struct net_device *netdev, enum fip_mode fip_mode,
                fcoe_interface_cleanup(fcoe);
                mutex_unlock(&fcoe_config_mutex);
                fcoe_ctlr_device_delete(ctlr_dev);
-               goto out;
+               return rc;
        }
 
        /* Make this the "master" N_Port */
@@ -2299,7 +2299,7 @@ static int _fcoe_create(struct net_device *netdev, enum fip_mode fip_mode,
 out_nodev:
        rtnl_unlock();
        mutex_unlock(&fcoe_config_mutex);
-out:
+
        return rc;
 }