scsi: target: remove boilerplate code
authorMaurizio Lombardi <mlombard@redhat.com>
Fri, 13 Mar 2020 17:06:54 +0000 (18:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 06:00:58 +0000 (08:00 +0200)
commit1140ef72c9fdd08715cba3119e380c55cc6c1b86
tree6092f68e0d13a94f5f9e02daef462bdc226006ec
parentb9e0151c008a6970f3302571debe5b86043c8630
scsi: target: remove boilerplate code

[ Upstream commit e49a7d994379278d3353d7ffc7994672752fb0ad ]

iscsit_free_session() is equivalent to iscsit_stop_session() followed by a
call to iscsit_close_session().

Link: https://lore.kernel.org/r/20200313170656.9716-2-mlombard@redhat.com
Tested-by: Rahul Kundu <rahul.kundu@chelsio.com>
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target.h