Commit 1c370903 authored by Jing Xiangfeng's avatar Jing Xiangfeng Committed by Martin K. Petersen

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.comReviewed-by: default avatarMaurizio Lombardi <mlombard@redhat.com>
Signed-off-by: default avatarJing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d251193d
...@@ -4529,7 +4529,6 @@ int iscsit_logout_post_handler( ...@@ -4529,7 +4529,6 @@ int iscsit_logout_post_handler(
iscsit_logout_post_handler_closesession(conn); iscsit_logout_post_handler_closesession(conn);
break; break;
} }
ret = 0;
break; break;
case ISCSI_LOGOUT_REASON_CLOSE_CONNECTION: case ISCSI_LOGOUT_REASON_CLOSE_CONNECTION:
if (conn->cid == cmd->logout_cid) { if (conn->cid == cmd->logout_cid) {
...@@ -4540,7 +4539,6 @@ int iscsit_logout_post_handler( ...@@ -4540,7 +4539,6 @@ int iscsit_logout_post_handler(
iscsit_logout_post_handler_samecid(conn); iscsit_logout_post_handler_samecid(conn);
break; break;
} }
ret = 0;
} else { } else {
switch (cmd->logout_response) { switch (cmd->logout_response) {
case ISCSI_LOGOUT_SUCCESS: case ISCSI_LOGOUT_SUCCESS:
......
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