Skip to content

Commit f9952be

Browse files
committed
ide: remove superfluous SELECT_MASK() call from ide_driveid_update()
We always call SELECT_MASK(drive, 0) after ide_dev_read_id() call so there is no need to do it again in the error path. Moreover with the combination of HPT36x controller and the drive on the quirk_drives[] list this can result in superfluous enable_irq() call which in turn will trigger WARN() in __enable_irq(). Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent dff8817 commit f9952be

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/ide/ide-iops.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ int ide_driveid_update(ide_drive_t *drive)
311311

312312
return 1;
313313
out_err:
314-
SELECT_MASK(drive, 0);
315314
if (rc == 2)
316315
printk(KERN_ERR "%s: %s: bad status\n", drive->name, __func__);
317316
kfree(id);

0 commit comments

Comments
 (0)