Commit 3d2efb54 authored by Tom Rix's avatar Tom Rix Committed by Martin K. Petersen

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: default avatarTom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230331175757.1860780-1-trix@redhat.comSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4e0966a4
...@@ -472,14 +472,12 @@ static void qla4xxx_mbox_status_entry(struct scsi_qla_host *ha, ...@@ -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) void qla4xxx_process_response_queue(struct scsi_qla_host *ha)
{ {
uint32_t count = 0;
struct srb *srb = NULL; struct srb *srb = NULL;
struct status_entry *sts_entry; struct status_entry *sts_entry;
/* Process all responses from response queue */ /* Process all responses from response queue */
while ((ha->response_ptr->signature != RESPONSE_PROCESSED)) { while ((ha->response_ptr->signature != RESPONSE_PROCESSED)) {
sts_entry = (struct status_entry *) ha->response_ptr; sts_entry = (struct status_entry *) ha->response_ptr;
count++;
/* Advance pointers for next entry */ /* Advance pointers for next entry */
if (ha->response_out == (RESPONSE_QUEUE_DEPTH - 1)) { if (ha->response_out == (RESPONSE_QUEUE_DEPTH - 1)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment