From: Chen Gang Date: Wed, 27 Feb 2013 03:33:25 +0000 (+0800) Subject: arch/x86/kvm: beautify source code for __u32 irq which is never < 0 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=02cdb50fd7e4b5ce1f6f70e27f74283ced0e1872;p=deliverable%2Flinux.git arch/x86/kvm: beautify source code for __u32 irq which is never < 0 irp->irq is __u32 which is never < 0. Signed-off-by: Chen Gang Signed-off-by: Gleb Natapov --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 3c5bb6fe5280..d0cf7371a558 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2696,7 +2696,7 @@ static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu, static int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, struct kvm_interrupt *irq) { - if (irq->irq < 0 || irq->irq >= KVM_NR_INTERRUPTS) + if (irq->irq >= KVM_NR_INTERRUPTS) return -EINVAL; if (irqchip_in_kernel(vcpu->kvm)) return -ENXIO;