Skip to contentSkip to conversation

ACPI: (x86) remove useless initial assignment in gsi_to_irq

RFC PATCH New [email protected] 1 participant 1 message Mar 31, 2014

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

RFC PATCH 1/1 ACPI: (x86) remove useless initial assignment in gsi_to_irq

From: Zhouyi Zhou <[email protected]>

I think in function gsi_to_irq, initial assignment to irq is useless although compiler may eliminate it during the compilng.

---
 arch/x86/kernel/acpi/boot.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/acpi/boot.c +1 -1
index 1dac942..b93d61e 100644
@@ -103,7 +103,7 @@ static u32 isa_irq_to_gsi[NR_IRQS_LEGACY] __read_mostly = {
 
 static unsigned int gsi_to_irq(unsigned int gsi)
 {
-	unsigned int irq = gsi + NR_IRQS_LEGACY;
+	unsigned int irq;
 	unsigned int i;
 
 	for (i = 0; i < NR_IRQS_LEGACY; i++) {
Signature · 1 line
1.7.10.4