Skip to contentSkip to conversation

scsi: target/iscsi: remove redundant continue statement

PATCH Applied Colin King 2 participants 2 messages Jun 17, 2021 – Jun 19, 2021

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 scsi: target/iscsi: remove redundant continue statement

From: Colin Ian King <[email protected]>

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

Addresses-Coverity: ("Continue has no effect")

---
 drivers/target/iscsi/iscsi_target_erl1.c | 2 --
 1 file changed, 2 deletions(-)
drivers/target/iscsi/iscsi_target_erl1.c +0 -2
index cd670cb9b8fb..0dd52f484fec 100644
@@ -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;
Signature · 1 line
2.31.1
#1 lore raw

Colin,

Quoted 1 line

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

Applied to 5.14/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering