scsi: csiostor: Remove unused variable n
Subsystems (2)
PATCH 1/1 scsi: csiostor: Remove unused variable n
Variable n is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/scsi/csiostor/csio_wr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/csiostor/csio_wr.c +1 -2
@@ -1051,7 +1051,6 @@ csio_wr_process_fl(struct csio_hw *hw, struct csio_q *q,struct csio_fl_dma_buf flb;struct csio_dma_buf *buf, *fbuf;uint32_t bufsz, len, lastlen =0 ; -int n;struct csio_q *flq = hw->wrm.q_arr[q->un.iq.flq_idx];CSIO_DB_ASSERT (flq !=NULL );
@@ -1071,7 +1070,7 @@ csio_wr_process_fl(struct csio_hw *hw, struct csio_q *q, flb.totlen = len;/* Consume all freelist buffers used for len bytes */ -for (n =0 , fbuf = flb.flbufs; ; n++, fbuf++) { +for (fbuf = flb.flbufs; ; fbuf++) { buf = &flq->un.fl.bufs[flq->cidx]; bufsz =csio_wr_fl_bufsz (sge, buf);
Signature · 1 line
2.37.3
Martin K. Petersen
AppliedColin,
Quoted 2 lines
Variable n is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it.
Applied to 6.2/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 4 lines · Colin Ian King
Variable n is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it.
Applied to 6.2/scsi-queue, thanks!
[1/1] scsi: csiostor: Remove unused variable n
https://git.kernel.org/mkp/scsi/c/0aa46eba2955
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering