Skip to contentSkip to conversation

scsi: qedf: Remove set but unused variable 'page'

PATCH Applied Jiapeng Chong 2 participants 2 messages Oct 9, 2022 – Oct 27, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: qedf: Remove set but unused variable 'page'

The variable page is not effectively used in the function, so delete it.

---
 drivers/scsi/qedf/qedf_main.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/scsi/qedf/qedf_main.c +0 -3
index e045c6e25090..35e16600fc63 100644
@@ -2951,7 +2951,6 @@ static int qedf_alloc_bdq(struct qedf_ctx *qedf)
 	int i;
 	struct scsi_bd *pbl;
 	u64 *list;
-	dma_addr_t page;
 
 	/* Alloc dma memory for BDQ buffers */
 	for (i = 0; i < QEDF_BDQ_SIZE; i++) {
@@ -3012,11 +3011,9 @@ static int qedf_alloc_bdq(struct qedf_ctx *qedf)
 	qedf->bdq_pbl_list_num_entries = qedf->bdq_pbl_mem_size /
 	    QEDF_PAGE_SIZE;
 	list = (u64 *)qedf->bdq_pbl_list;
-	page = qedf->bdq_pbl_list_dma;
 	for (i = 0; i < qedf->bdq_pbl_list_num_entries; i++) {
 		*list = qedf->bdq_pbl_dma;
 		list++;
-		page += QEDF_PAGE_SIZE;
 	}
 
 	return 0;
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw
Quoted 4 lines · Jiapeng Chong

The variable page is not effectively used in the function, so delete it.

Applied to 6.2/scsi-queue, thanks!

[1/1] scsi: qedf: Remove set but unused variable 'page'

      https://git.kernel.org/mkp/scsi/c/e6f8a22ff4a1
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering