commit | 36633f32ba4c238403d19584754b30fe469d6dcb | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Mon May 03 17:38:06 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Aug 01 10:47:04 2010 +0300 |
tree | ddd476081d21eb2810885236c02aca541dce6be3 | |
parent | 073d46133ab0b42154f6b8429f4f66dbe2760bda [diff] [blame] |
KVM: i8259: simplify pic_irq_request() calling sequence Signed-off-by: Avi Kivity <avi@redhat.com>
diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index caf6e1b..bc10f0b 100644 --- a/arch/x86/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c
@@ -176,10 +176,7 @@ pic_set_irq1(&s->pics[0], 2, 0); } irq = pic_get_irq(&s->pics[0]); - if (irq >= 0) - pic_irq_request(s->kvm, 1); - else - pic_irq_request(s->kvm, 0); + pic_irq_request(s->kvm, irq >= 0); } void kvm_pic_update_irq(struct kvm_pic *s)