[PATCH 04/16] qemu-kvm: Drop IRQ0 override test from ioapic_set_irq

Jan Kiszka
2011-05-13T12:14:20Z

The IRQ0 override is not configurable while using the user space IOAPIC.
When the in-kernel irqchip is active, ioapic_set_irq is never called. So
drop this useless test.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
hw/ioapic.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/hw/ioapic.c b/hw/ioapic.c
index 2ac6127..084d37a 100644
--- a/hw/ioapic.c
+++ b/hw/ioapic.c
@@ -22,7 +22,6 @@

#include "hw.h"
#include "pc.h"
-#include "sysemu.h"
#include "apic.h"
#include "ioapic.h"
#include "qemu-timer.h"
@@ -146,7 +145,7 @@ static void ioapic_set_irq(void *opaque, int vector, int level)
* the cleanest way of doing it but it should work. */

DPRINTF("%s: %s vec %x\n", __func__, level ? "raise" : "lower", vector);
- if (vector == 0 && irq0override) {
+ if (vector == 0) {
vector = 2;
}
if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
--
1.7.1