aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.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/kvm_main.c
parentKVM: Portability: Make kvm_vcpu_ioctl_translate arch dependent (diff)
downloadlinux-dev-56919c5c97aa07b150311c5c9802af07872ee2b0.tar.xz
linux-dev-56919c5c97aa07b150311c5c9802af07872ee2b0.zip
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_main.c')
-rw-r--r--drivers/kvm/kvm_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 3946025f3d37..7335435f528e 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1449,7 +1449,8 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
/* A kmem cache lets us meet the alignment requirements of fx_save. */
kvm_vcpu_cache = kmem_cache_create("kvm_vcpu", vcpu_size,
- __alignof__(struct kvm_vcpu), 0, 0);
+ __alignof__(struct kvm_vcpu),
+ 0, NULL);
if (!kvm_vcpu_cache) {
r = -ENOMEM;
goto out_free_4;