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>
This commit is contained in:
Joe Perches
2007-11-12 20:06:51 -08:00
committed by Avi Kivity
parent 8b0067913d
commit 56919c5c97
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ static inline struct kvm_ioapic *ioapic_irqchip(struct kvm *kvm)
static inline int irqchip_in_kernel(struct kvm *kvm)
{
return pic_irqchip(kvm) != 0;
return pic_irqchip(kvm) != NULL;
}
struct descriptor_table {