qla4xxx: remove unused count variable
Subsystems (2)
PATCH 1/1 qla4xxx: remove unused count variable
clang with W=1 reports drivers/scsi/qla4xxx/ql4_isr.c:475:11: error: variable
'count' set but not used [-Werror,-Wunused-but-set-variable]
uint32_t count = 0;
^This variable is not used so remove it.
Signed-off-by Tom Rix <[email protected]>
--- drivers/scsi/qla4xxx/ql4_isr.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/qla4xxx/ql4_isr.c +0 -2
@@ -472,14 +472,12 @@ static void qla4xxx_mbox_status_entry(struct scsi_qla_host *ha,**/ void qla4xxx_process_response_queue (struct scsi_qla_host *ha) { -uint32_t count =0 ;struct srb *srb =NULL ;struct status_entry *sts_entry;/* Process all responses from response queue */ while ((ha->response_ptr->signature !=RESPONSE_PROCESSED )) { sts_entry = (struct status_entry *) ha->response_ptr; - count++;/* Advance pointers for next entry */ if (ha->response_out == (RESPONSE_QUEUE_DEPTH -1 )) {
Signature · 1 line
2.27.0
Martin K. Petersen
AppliedTom,
Quoted 6 lines
clang with W=1 reports
drivers/scsi/qla4xxx/ql4_isr.c:475:11: error: variable
'count' set but not used [-Werror,-Wunused-but-set-variable]uint32_t count = 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/qla4xxx/ql4_isr.c:475:11: error: variable
'count' set but not used [-Werror,-Wunused-but-set-variable]uint32_t count = 0; ^This variable is not used so remove it.
[...]
Applied to 6.4/scsi-queue, thanks!
[1/1] qla4xxx: remove unused count variable
https://git.kernel.org/mkp/scsi/c/3d2efb5470f5
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering