Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3011b482 authored by Milan P. Gandhi's avatar Milan P. Gandhi Committed by Martin K. Petersen
Browse files

scsi: fcoe: Remove an extra out label in _fcoe_create function



This patch removes an extra out label in _fcoe_create function where we
return if creation of FCOE interface is failed.

Signed-off-by: default avatarMilan P. Gandhi <mgandhi@redhat.com>
Acked-by: default avatarJohannes Thumshirn <jth@kernel.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 78cfe97f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}