commit | 56919c5c97aa07b150311c5c9802af07872ee2b0 | [log] [tgz] |
---|---|---|
author | Joe Perches <joe@perches.com> | Mon Nov 12 20:06:51 2007 -0800 |
committer | Avi Kivity <avi@qumranet.com> | Wed Jan 30 17:53:03 2008 +0200 |
tree | 287456543e7f6678c06af77eb0344a615c6e0b97 | |
parent | 8b0067913d9d0439d4cf3c1f7314ba71fc7b2958 [diff] [blame] |
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>
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index e34e246..c4ad66b 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h
@@ -398,7 +398,7 @@ static inline int irqchip_in_kernel(struct kvm *kvm) { - return pic_irqchip(kvm) != 0; + return pic_irqchip(kvm) != NULL; } struct descriptor_table {