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: Milan P. Gandhi <mgandhi@redhat.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
78cfe97ffa
commit
3011b48268
@ -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,
|
|||||||
out_nodev:
|
out_nodev:
|
||||||
rtnl_unlock();
|
rtnl_unlock();
|
||||||
mutex_unlock(&fcoe_config_mutex);
|
mutex_unlock(&fcoe_config_mutex);
|
||||||
out:
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user