diff mbox series

scsi: qla2xxx: remove redundant continue statement in a for-loop

Message ID 20210702131542.19880-1-colin.king@canonical.com (mailing list archive)
State Accepted
Headers show
Series scsi: qla2xxx: remove redundant continue statement in a for-loop | expand

Commit Message

Colin King July 2, 2021, 1:15 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

The continue statement at the end of the for-loop is redundant,
remove it.

Addresses-Coverity: ("Continue has no effect")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/scsi/qla2xxx/qla_sup.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Martin K. Petersen July 19, 2021, 1:31 a.m. UTC | #1
Colin,

> The continue statement at the end of the for-loop is redundant, remove
> it.

Applied to 5.15/scsi-staging, thanks!
Martin K. Petersen July 24, 2021, 2:13 a.m. UTC | #2
On Fri, 2 Jul 2021 14:15:42 +0100, Colin King wrote:

> The continue statement at the end of the for-loop is redundant,
> remove it.

Applied to 5.15/scsi-queue, thanks!

[1/1] scsi: qla2xxx: remove redundant continue statement in a for-loop
      https://git.kernel.org/mkp/scsi/c/37306698c3d0
diff mbox series

Patch

diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c
index 060c89237777..a0aeba69513d 100644
--- a/drivers/scsi/qla2xxx/qla_sup.c
+++ b/drivers/scsi/qla2xxx/qla_sup.c
@@ -2936,7 +2936,6 @@  qla28xx_write_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr,
 		liter += dburst - 1;
 		faddr += dburst - 1;
 		dwptr += dburst - 1;
-		continue;
 	}
 
 write_protect: