diff options
author | neel <neel@FreeBSD.org> | 2013-03-16 22:53:05 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-03-16 22:53:05 +0000 |
commit | 4bbf2e81a6a3b076d53a9eb2d67eec6b39027517 (patch) | |
tree | 5a375f023c41add370fe48b8174c65740c5c7bc9 /sys | |
parent | a31543af1598efecb32398a1c6fd5e8d2a477d03 (diff) | |
download | FreeBSD-src-4bbf2e81a6a3b076d53a9eb2d67eec6b39027517.zip FreeBSD-src-4bbf2e81a6a3b076d53a9eb2d67eec6b39027517.tar.gz |
Fix the '-Wtautological-compare' warning emitted by clang for comparing the
unsigned enum type with a negative value.
Obtained from: NetApp
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/vmm/vmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index 174d479..1de4470 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -937,7 +937,7 @@ vm_set_x2apic_state(struct vm *vm, int vcpuid, enum x2apic_state state) if (vcpuid < 0 || vcpuid >= VM_MAXCPU) return (EINVAL); - if (state < 0 || state >= X2APIC_STATE_LAST) + if (state >= X2APIC_STATE_LAST) return (EINVAL); vm->vcpu[vcpuid].x2apic_state = state; |