From: Colin Ian King Date: Thu, 17 Jun 2021 07:37:43 +0000 (+0100) Subject: scsi: qla4xxx: Remove redundant continue statement X-Git-Tag: v5.14-rc1~9^2~39 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=2e72bf7ec71d62f758f64cdfb17bbb98d649dd2d;p=linux-block.git scsi: qla4xxx: Remove redundant continue statement The continue statement at the end of a for-loop has no effect, remove it. Link: https://lore.kernel.org/r/20210617073743.151008-1-colin.king@canonical.com Signed-off-by: Colin Ian King Signed-off-by: Martin K. Petersen Addresses-Coverity: ("Continue has no effect") --- diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 0e7a7e82e028..6ee7ea4c27e0 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -815,8 +815,6 @@ static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, valid_chap_entries++; if (valid_chap_entries == *num_entries) break; - else - continue; } mutex_unlock(&ha->chap_sem);