ata: sata_dwc_460ex: remove variable num_processed
authorColin Ian King <colin.i.king@gmail.com>
Mon, 24 Oct 2022 14:17:59 +0000 (15:17 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 27 Oct 2022 00:57:55 +0000 (09:57 +0900)
Variable num_processed is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/sata_dwc_460ex.c

index e3263e9..fd699c5 100644 (file)
@@ -472,7 +472,7 @@ static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
        struct ata_queued_cmd *qc;
        unsigned long flags;
        u8 status, tag;
-       int handled, num_processed, port = 0;
+       int handled, port = 0;
        uint intpr, sactive, sactive2, tag_mask;
        struct sata_dwc_device_port *hsdevp;
        hsdev->sactive_issued = 0;
@@ -618,9 +618,7 @@ DRVSTILLBUSY:
        dev_dbg(ap->dev, "%s ATA status register=0x%x\n", __func__, status);
 
        tag = 0;
-       num_processed = 0;
        while (tag_mask) {
-               num_processed++;
                while (!(tag_mask & 0x00000001)) {
                        tag++;
                        tag_mask <<= 1;