aboutsummaryrefslogtreecommitdiff
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-11-12 20:06:51 -0800
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:53:03 +0200
commit56919c5c97aa07b150311c5c9802af07872ee2b0 (patch)
tree287456543e7f6678c06af77eb0344a615c6e0b97 /drivers/kvm/svm.c
parent8b0067913d9d0439d4cf3c1f7314ba71fc7b2958 (diff)
KVM: Remove ptr comparisons to 0
Fix sparse warnings "Using plain integer as NULL pointer" Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 0ccbef18476..a1a7f39ff3f 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -1271,7 +1271,7 @@ static int handle_exit(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
exit_code);
if (exit_code >= ARRAY_SIZE(svm_exit_handlers)
- || svm_exit_handlers[exit_code] == 0) {
+ || !svm_exit_handlers[exit_code]) {
kvm_run->exit_reason = KVM_EXIT_UNKNOWN;
kvm_run->hw.hardware_exit_reason = exit_code;
return 0;