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

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
...@@ -2258,7 +2258,7 @@ static int _fcoe_create(struct net_device *netdev, enum fip_mode fip_mode, ...@@ -2258,7 +2258,7 @@ static int _fcoe_create(struct net_device *netdev, enum fip_mode fip_mode,
fcoe_interface_cleanup(fcoe); fcoe_interface_cleanup(fcoe);
mutex_unlock(&fcoe_config_mutex); mutex_unlock(&fcoe_config_mutex);
fcoe_ctlr_device_delete(ctlr_dev); fcoe_ctlr_device_delete(ctlr_dev);
goto out; return rc;
} }
/* Make this the "master" N_Port */ /* Make this the "master" N_Port */
...@@ -2299,7 +2299,7 @@ static int _fcoe_create(struct net_device *netdev, enum fip_mode fip_mode, ...@@ -2299,7 +2299,7 @@ static int _fcoe_create(struct net_device *netdev, enum fip_mode fip_mode,
out_nodev: out_nodev:
rtnl_unlock(); rtnl_unlock();
mutex_unlock(&fcoe_config_mutex); mutex_unlock(&fcoe_config_mutex);
out:
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment