scsi: qedf: remove unused num_handled variable
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/scsi/qedf/qedf_main.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/qedf/qedf_main.c +0 -2
@@ -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;
@@ -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) &
Signature · 1 line
2.27.0
Martin K. Petersen
AppliedTom,
Quoted 6 lines
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.
Applied to 6.4/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 8 lines · Tom Rix
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.
[...]
Applied to 6.4/scsi-queue, thanks!
[1/1] scsi: qedf: remove unused num_handled variable
https://git.kernel.org/mkp/scsi/c/7866e03b9825
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering