projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f92b11
)
ide: remove superfluous local_irq_{save,restore}() from ide_dump_status()
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 29 Dec 2008 19:27:37 +0000
(20:27 +0100)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 29 Dec 2008 19:27:37 +0000
(20:27 +0100)
No reason to run this function with local IRQs off.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-lib.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-lib.c
b/drivers/ide/ide-lib.c
index 7913ad5d4979807da9621b4c86ff27c1b3336516..9f6e33d8a8b27bef1040e46b42fe894454d67709 100644
(file)
--- a/
drivers/ide/ide-lib.c
+++ b/
drivers/ide/ide-lib.c
@@
-384,10
+384,8
@@
static void ide_dump_atapi_error(ide_drive_t *drive, u8 err)
u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat)
{
- unsigned long flags;
u8 err = 0;
- local_irq_save(flags);
printk(KERN_ERR "%s: %s: status=0x%02x { ", drive->name, msg, stat);
if (stat & ATA_BUSY)
printk(KERN_CONT "Busy ");
@@
-417,7
+415,6
@@
u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat)
ide_dump_atapi_error(drive, err);
}
ide_dump_opcode(drive);
- local_irq_restore(flags);
return err;
}
EXPORT_SYMBOL(ide_dump_status);