mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 13:53:54 +07:00
scsi: target: Remove redundant assignment to variable 'ret'
The variable ret has been initialized with a value '0'. The assignment in switch-case is redundant. Remove it. Link: https://lore.kernel.org/r/20200914023207.113792-1-jingxiangfeng@huawei.com Reviewed-by: Maurizio Lombardi <mlombard@redhat.com> Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
d251193d17
commit
1c370903d1
@ -4529,7 +4529,6 @@ int iscsit_logout_post_handler(
|
||||
iscsit_logout_post_handler_closesession(conn);
|
||||
break;
|
||||
}
|
||||
ret = 0;
|
||||
break;
|
||||
case ISCSI_LOGOUT_REASON_CLOSE_CONNECTION:
|
||||
if (conn->cid == cmd->logout_cid) {
|
||||
@ -4540,7 +4539,6 @@ int iscsit_logout_post_handler(
|
||||
iscsit_logout_post_handler_samecid(conn);
|
||||
break;
|
||||
}
|
||||
ret = 0;
|
||||
} else {
|
||||
switch (cmd->logout_response) {
|
||||
case ISCSI_LOGOUT_SUCCESS:
|
||||
|
Loading…
Reference in New Issue
Block a user