Skip to content

Commit d688b72

Browse files
committed
ide: remove superfluous local_irq_{save,restore}() from ide_dump_status()
No reason to run this function with local IRQs off. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent 7f92b11 commit d688b72

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/ide/ide-lib.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,8 @@ static void ide_dump_atapi_error(ide_drive_t *drive, u8 err)
384384

385385
u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat)
386386
{
387-
unsigned long flags;
388387
u8 err = 0;
389388

390-
local_irq_save(flags);
391389
printk(KERN_ERR "%s: %s: status=0x%02x { ", drive->name, msg, stat);
392390
if (stat & ATA_BUSY)
393391
printk(KERN_CONT "Busy ");
@@ -417,7 +415,6 @@ u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat)
417415
ide_dump_atapi_error(drive, err);
418416
}
419417
ide_dump_opcode(drive);
420-
local_irq_restore(flags);
421418
return err;
422419
}
423420
EXPORT_SYMBOL(ide_dump_status);

0 commit comments

Comments
 (0)