Skip to content

Commit 3d2efb5

Browse files
Tom Rixmartinkpetersen
authored andcommitted
scsi: 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 <trix@redhat.com> Link: https://lore.kernel.org/r/20230331175757.1860780-1-trix@redhat.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 4e0966a commit 3d2efb5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/scsi/qla4xxx/ql4_isr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,14 +472,12 @@ static void qla4xxx_mbox_status_entry(struct scsi_qla_host *ha,
472472
**/
473473
void qla4xxx_process_response_queue(struct scsi_qla_host *ha)
474474
{
475-
uint32_t count = 0;
476475
struct srb *srb = NULL;
477476
struct status_entry *sts_entry;
478477

479478
/* Process all responses from response queue */
480479
while ((ha->response_ptr->signature != RESPONSE_PROCESSED)) {
481480
sts_entry = (struct status_entry *) ha->response_ptr;
482-
count++;
483481

484482
/* Advance pointers for next entry */
485483
if (ha->response_out == (RESPONSE_QUEUE_DEPTH - 1)) {

0 commit comments

Comments
 (0)