From: Silvan Jegen Date: Mon, 10 Mar 2014 21:33:50 +0000 (+0100) Subject: pata_legacy: Remove dead code X-Git-Tag: v3.15-rc1~161^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e853a4e01ffd0962a197f61e792178b458ae4763;p=thirdparty%2Fkernel%2Flinux.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 --- diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index be816428b430f..bce2a8ca4678a 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)