Skip to contentSkip to conversation

pata_legacy: Remove dead code

PATCH Applied Silvan Jegen 2 participants 2 messages Mar 10, 2014 – Mar 11, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pata_legacy: Remove dead code

The current flow of control prevents this function from being called. Let's remove the call.

---
 drivers/ata/pata_legacy.c | 1 -
 1 file changed, 1 deletion(-)
drivers/ata/pata_legacy.c +0 -1
index be81642..bce2a8c 100644
@@ -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)
Signature · 1 line
1.9.0
Applied
#1 lore raw
Quoted 4 lines · Silvan Jegen

The current flow of control prevents this function from being called. Let's remove the call.

Applied to libata/for-3.15.

Thanks.

Signature · 1 line
tejun