diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-10-24 15:17:59 +0100 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-27 09:57:55 +0900 |
commit | de58fd3d80f884f7f322a06bfe08465e49b47c5d (patch) | |
tree | 32b3419e27b00bab45bd7b5e9b2f300fb332ef38 /drivers/ata | |
parent | 43c10618700b5880097c0e13a36c94766998e8eb (diff) | |
download | linux-stable-de58fd3d80f884f7f322a06bfe08465e49b47c5d.tar.gz linux-stable-de58fd3d80f884f7f322a06bfe08465e49b47c5d.tar.bz2 linux-stable-de58fd3d80f884f7f322a06bfe08465e49b47c5d.zip |
ata: sata_dwc_460ex: remove variable num_processed
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/sata_dwc_460ex.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index e3263e961045..fd699c5bfc34 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c @@ -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; |