diff options
author | Joe Perches <joe@perches.com> | 2007-11-12 23:06:51 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:03 -0500 |
commit | 56919c5c97aa07b150311c5c9802af07872ee2b0 (patch) | |
tree | 287456543e7f6678c06af77eb0344a615c6e0b97 /drivers/kvm/kvm.h | |
parent | 8b0067913d9d0439d4cf3c1f7314ba71fc7b2958 (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/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index e34e246eafe..c4ad66bb5e0 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -398,7 +398,7 @@ static inline struct kvm_ioapic *ioapic_irqchip(struct kvm *kvm) | |||
398 | 398 | ||
399 | static inline int irqchip_in_kernel(struct kvm *kvm) | 399 | static inline int irqchip_in_kernel(struct kvm *kvm) |
400 | { | 400 | { |
401 | return pic_irqchip(kvm) != 0; | 401 | return pic_irqchip(kvm) != NULL; |
402 | } | 402 | } |
403 | 403 | ||
404 | struct descriptor_table { | 404 | struct descriptor_table { |