diff options
author | Avi Kivity <avi@redhat.com> | 2010-05-03 10:38:06 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 03:47:04 -0400 |
commit | 36633f32ba4c238403d19584754b30fe469d6dcb (patch) | |
tree | ddd476081d21eb2810885236c02aca541dce6be3 /arch/x86/kvm/i8259.c | |
parent | 073d46133ab0b42154f6b8429f4f66dbe2760bda (diff) |
KVM: i8259: simplify pic_irq_request() calling sequence
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8259.c')
-rw-r--r-- | arch/x86/kvm/i8259.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index caf6e1b3d957..bc10f0bd3819 100644 --- a/arch/x86/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c | |||
@@ -176,10 +176,7 @@ static void pic_update_irq(struct kvm_pic *s) | |||
176 | pic_set_irq1(&s->pics[0], 2, 0); | 176 | pic_set_irq1(&s->pics[0], 2, 0); |
177 | } | 177 | } |
178 | irq = pic_get_irq(&s->pics[0]); | 178 | irq = pic_get_irq(&s->pics[0]); |
179 | if (irq >= 0) | 179 | pic_irq_request(s->kvm, irq >= 0); |
180 | pic_irq_request(s->kvm, 1); | ||
181 | else | ||
182 | pic_irq_request(s->kvm, 0); | ||
183 | } | 180 | } |
184 | 181 | ||
185 | void kvm_pic_update_irq(struct kvm_pic *s) | 182 | void kvm_pic_update_irq(struct kvm_pic *s) |