Message ID | d7a492c39633d9373cf29e7ac02a30b1@208suo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | KVM: x86:Fix warnings in irq.c | expand |
diff --git a/arch/x86/kvm/irq.c b/arch/x86/kvm/irq.c index b2c397dd2bc6..e03757eee8c9 100644 --- a/arch/x86/kvm/irq.c +++ b/arch/x86/kvm/irq.c @@ -136,6 +136,7 @@ static int kvm_cpu_get_extint(struct kvm_vcpu *v) int kvm_cpu_get_interrupt(struct kvm_vcpu *v) { int vector = kvm_cpu_get_extint(v); + if (vector != -1) return vector; /* PIC */
The following checkpatch warning is removed: WARNING: Missing a blank line after declarations Signed-off-by: Jie Shi <shijie001@208suo.com> --- arch/x86/kvm/irq.c | 1 + 1 file changed, 1 insertion(+)