diff mbox series

scsi: target/iscsi: remove redundant continue statement

Message ID 20210617114347.10247-1-colin.king@canonical.com (mailing list archive)
State Accepted
Headers show
Series scsi: target/iscsi: remove redundant continue statement | expand

Commit Message

Colin King June 17, 2021, 11:43 a.m. UTC
From: Colin Ian King <colin.king@canonical.com>

The continue statement at the end of a loop has no effect,
remove it.

Addresses-Coverity: ("Continue has no effect")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/target/iscsi/iscsi_target_erl1.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Martin K. Petersen June 19, 2021, 2:34 a.m. UTC | #1
Colin,

> The continue statement at the end of a loop has no effect, remove it.

Applied to 5.14/scsi-staging, thanks!
diff mbox series

Patch

diff --git a/drivers/target/iscsi/iscsi_target_erl1.c b/drivers/target/iscsi/iscsi_target_erl1.c
index cd670cb9b8fb..0dd52f484fec 100644
--- a/drivers/target/iscsi/iscsi_target_erl1.c
+++ b/drivers/target/iscsi/iscsi_target_erl1.c
@@ -871,8 +871,6 @@  int iscsit_execute_ooo_cmdsns(struct iscsi_session *sess)
 
 		if (iscsit_execute_cmd(cmd, 1) < 0)
 			return -1;
-
-		continue;
 	}
 
 	return ooo_count;