ACPI: (x86) remove useless initial assignment in gsi_to_irq
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.
Signed-off-by Zhouyi Zhou <[email protected]>
--- arch/x86/kernel/acpi/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/acpi/boot.c +1 -1
@@ -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