* [PATCH RFC] ACPI: (x86) remove useless initial assignment in gsi_to_irq
@ 2014-03-31 2:30 zhouzhouyi
0 siblings, 0 replies; only message in thread
From: zhouzhouyi @ 2014-03-31 2:30 UTC (permalink / raw)
To: len.brown, pavel, rjw, tglx, mingo, hpa, x86, linux-pm, linux-kernel
Cc: Zhouyi Zhou, Zhouyi Zhou
From: Zhouyi Zhou <zhouzhouyi@gmail.com>
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@ict.ac.cn>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-31 2:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-31 2:30 [PATCH RFC] ACPI: (x86) remove useless initial assignment in gsi_to_irq zhouzhouyi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome