Skip to content

Commit

Permalink
ide: no need to touch local IRQs in ide_probe_port()
Browse files Browse the repository at this point in the history
Remove superfluous

	local_save_flags()
	local_irq_enable_in_hardirq()

	...

	local_irq_restore()

combo.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 7a254df commit d336ae3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,6 @@ EXPORT_SYMBOL_GPL(ide_undecoded_slave);
static int ide_probe_port(ide_hwif_t *hwif)
{
ide_drive_t *drive;
unsigned long flags;
unsigned int irqd;
int i, rc = -ENODEV;

Expand All @@ -797,9 +796,6 @@ static int ide_probe_port(ide_hwif_t *hwif)
if (irqd)
disable_irq(hwif->irq);

local_save_flags(flags);
local_irq_enable_in_hardirq();

if (ide_port_wait_ready(hwif) == -EBUSY)
printk(KERN_DEBUG "%s: Wait for ready failed before probe !\n", hwif->name);

Expand All @@ -813,8 +809,6 @@ static int ide_probe_port(ide_hwif_t *hwif)
rc = 0;
}

local_irq_restore(flags);

/*
* Use cached IRQ number. It might be (and is...) changed by probe
* code above
Expand Down

0 comments on commit d336ae3

Please sign in to comment.