kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: qla2xxx: remove redundant continue statement in a for-loop
@ 2021-07-02 13:15 Colin King
  2021-07-19  1:31 ` Martin K. Petersen
  2021-07-24  2:13 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2021-07-02 13:15 UTC (permalink / raw)
  To: Nilesh Javali, GR-QLogic-Storage-Upstream,
	James E . J . Bottomley, Martin K . Petersen, linux-scsi
  Cc: kernel-janitors, linux-kernel

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(-)

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:
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: qla2xxx: remove redundant continue statement in a for-loop
  2021-07-02 13:15 [PATCH] scsi: qla2xxx: remove redundant continue statement in a for-loop Colin King
@ 2021-07-19  1:31 ` Martin K. Petersen
  2021-07-24  2:13 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2021-07-19  1:31 UTC (permalink / raw)
  To: Colin King
  Cc: Nilesh Javali, GR-QLogic-Storage-Upstream,
	James E . J . Bottomley, Martin K . Petersen, linux-scsi,
	kernel-janitors, linux-kernel


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	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: qla2xxx: remove redundant continue statement in a for-loop
  2021-07-02 13:15 [PATCH] scsi: qla2xxx: remove redundant continue statement in a for-loop Colin King
  2021-07-19  1:31 ` Martin K. Petersen
@ 2021-07-24  2:13 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2021-07-24  2:13 UTC (permalink / raw)
  To: Colin King, James E . J . Bottomley, linux-scsi,
	GR-QLogic-Storage-Upstream, Nilesh Javali
  Cc: Martin K . Petersen, linux-kernel, kernel-janitors

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

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-24  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 13:15 [PATCH] scsi: qla2xxx: remove redundant continue statement in a for-loop Colin King
2021-07-19  1:31 ` Martin K. Petersen
2021-07-24  2:13 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).