Skip to content

Commit de58fd3

Browse files
ColinIanKingDamien Le Moal
authored andcommitted
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 <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 43c1061 commit de58fd3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/ata/sata_dwc_460ex.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
472472
struct ata_queued_cmd *qc;
473473
unsigned long flags;
474474
u8 status, tag;
475-
int handled, num_processed, port = 0;
475+
int handled, port = 0;
476476
uint intpr, sactive, sactive2, tag_mask;
477477
struct sata_dwc_device_port *hsdevp;
478478
hsdev->sactive_issued = 0;
@@ -618,9 +618,7 @@ static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
618618
dev_dbg(ap->dev, "%s ATA status register=0x%x\n", __func__, status);
619619

620620
tag = 0;
621-
num_processed = 0;
622621
while (tag_mask) {
623-
num_processed++;
624622
while (!(tag_mask & 0x00000001)) {
625623
tag++;
626624
tag_mask <<= 1;

0 commit comments

Comments
 (0)