提交 36633f32 编写于 作者: A Avi Kivity

KVM: i8259: simplify pic_irq_request() calling sequence

Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 073d4613
......@@ -176,10 +176,7 @@ static void pic_update_irq(struct kvm_pic *s)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册