Skip to content

Commit

Permalink
scsi: qedf: Remove unused 'num_handled' variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom Rix authored and Martin K. Petersen committed Apr 3, 2023
1 parent 0a07d3c commit 7866e03
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/scsi/qedf/qedf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,6 @@ static bool qedf_process_completions(struct qedf_fastpath *fp)
u16 prod_idx;
struct fcoe_cqe *cqe;
struct qedf_io_work *io_work;
int num_handled = 0;
unsigned int cpu;
struct qedf_ioreq *io_req = NULL;
u16 xid;
Expand All @@ -2247,7 +2246,6 @@ static bool qedf_process_completions(struct qedf_fastpath *fp)

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

comp_type = (cqe->cqe_data >> FCOE_CQE_CQE_TYPE_SHIFT) &
Expand Down

0 comments on commit 7866e03

Please sign in to comment.