projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e137b81
)
scsi: csiostor: Remove unused variable 'n'
author
Colin Ian King
<colin.i.king@gmail.com>
Tue, 1 Nov 2022 12:32:35 +0000
(12:32 +0000)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 8 Nov 2022 03:40:54 +0000
(
03:40
+0000)
Variable 'n' is just being incremented and it's never used anywhere
else. Remove it.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link:
https://lore.kernel.org/r/20221101123235.52152-1-colin.i.king@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/csiostor/csio_wr.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/csiostor/csio_wr.c
b/drivers/scsi/csiostor/csio_wr.c
index
fe0355c
..
a516df0
100644
(file)
--- a/
drivers/scsi/csiostor/csio_wr.c
+++ b/
drivers/scsi/csiostor/csio_wr.c
@@
-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);