From: Silvan Jegen Date: Mon, 10 Mar 2014 21:33:50 +0000 (+0100) Subject: pata_legacy: Remove dead code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=89dbcdcc23774d694b728f9e892b5192143c1349;p=karo-tx-linux.git pata_legacy: Remove dead code The current flow of control prevents this function from being called. Let's remove the call. Signed-off-by: Silvan Jegen Signed-off-by: Tejun Heo (cherry picked from commit e853a4e01ffd0962a197f61e792178b458ae4763) --- diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index be816428b430..bce2a8ca4678 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c @@ -916,7 +916,6 @@ static __init int probe_chip_type(struct legacy_probe *probe) local_irq_restore(flags); return BIOS; } - local_irq_restore(flags); } if (ht6560a & mask)