Skip to content

Commit 7866e03

Browse files
Tom Rixmartinkpetersen
authored andcommitted
scsi: qedf: Remove unused 'num_handled' variable
clang with W=1 reports: drivers/scsi/qedf/qedf_main.c:2227:6: error: variable 'num_handled' set but not used [-Werror,-Wunused-but-set-variable] int num_handled = 0; ^ This variable is not used so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20230330203444.1842425-1-trix@redhat.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 0a07d3c commit 7866e03

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/scsi/qedf/qedf_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,6 @@ static bool qedf_process_completions(struct qedf_fastpath *fp)
22242224
u16 prod_idx;
22252225
struct fcoe_cqe *cqe;
22262226
struct qedf_io_work *io_work;
2227-
int num_handled = 0;
22282227
unsigned int cpu;
22292228
struct qedf_ioreq *io_req = NULL;
22302229
u16 xid;
@@ -2247,7 +2246,6 @@ static bool qedf_process_completions(struct qedf_fastpath *fp)
22472246

22482247
while (new_cqes) {
22492248
fp->completions++;
2250-
num_handled++;
22512249
cqe = &que->cq[que->cq_cons_idx];
22522250

22532251
comp_type = (cqe->cqe_data >> FCOE_CQE_CQE_TYPE_SHIFT) &

0 commit comments

Comments
 (0)