[PATCH RFC] ACPI: (x86) remove useless initial assignment in gsi_to_irq

From: zhouzhouyi
Date: Sun Mar 30 2014 - 22:31:37 EST


From: Zhouyi Zhou <zhouzhouyi@xxxxxxxxx>

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 <yizhouzhou@xxxxxxxxx>
---
arch/x86/kernel/acpi/boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 1dac942..b93d61e 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -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++) {
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/