mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
scsi: libiscsi: Remove iscsi_destroy_session
iscsi_session_teardown was the only user of this function. Function currently is just short for iscsi_remove_session + iscsi_free_session. Signed-off-by: Khazhismel Kumykov <[email protected]> Acked-by: Chris Leech <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
9e10b5121a
commit
1c048a250a
2 changed files with 0 additions and 17 deletions
|
|
@ -2210,22 +2210,6 @@ void iscsi_free_session(struct iscsi_cls_session *session)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(iscsi_free_session);
|
||||
|
||||
/**
|
||||
* iscsi_destroy_session - destroy iscsi session
|
||||
* @session: iscsi_session
|
||||
*
|
||||
* Can be called by a LLD or iscsi_transport. There must not be
|
||||
* any running connections.
|
||||
*/
|
||||
int iscsi_destroy_session(struct iscsi_cls_session *session)
|
||||
{
|
||||
iscsi_remove_session(session);
|
||||
ISCSI_DBG_TRANS_SESSION(session, "Completing session destruction\n");
|
||||
iscsi_free_session(session);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(iscsi_destroy_session);
|
||||
|
||||
/**
|
||||
* iscsi_create_conn - create iscsi class connection
|
||||
* @session: iscsi cls session
|
||||
|
|
|
|||
Loading…
Reference in a new issue