summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-02-27 11:33:25 +0800
committerGleb Natapov <gleb@redhat.com>2013-02-27 16:07:45 +0200
commit02cdb50fd7e4b5ce1f6f70e27f74283ced0e1872 (patch)
treed04248b349da15e20daf2da33b64e841cc0fc906 /arch/x86/kvm/x86.c
parent957c897e8cf5a26abbce1a1a38833251339d596d (diff)
downloadlinux-3.10-02cdb50fd7e4b5ce1f6f70e27f74283ced0e1872.tar.gz
linux-3.10-02cdb50fd7e4b5ce1f6f70e27f74283ced0e1872.tar.bz2
linux-3.10-02cdb50fd7e4b5ce1f6f70e27f74283ced0e1872.zip
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 <gang.chen@asianux.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3c5bb6fe528..d0cf7371a55 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;