From 0888c05458e8cf6e81f05d1445f980f4b4b3a4ce Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Thu, 20 Dec 2012 14:11:12 -0500 Subject: [PATCH] kvm tools: correctly compare pointer with NULL instead of 0 Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- hw/pci-shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci-shmem.c b/hw/pci-shmem.c index 00e5d93..ec3f771 100644 --- a/hw/pci-shmem.c +++ b/hw/pci-shmem.c @@ -356,7 +356,7 @@ int pci_shmem__init(struct kvm *kvm) char *mem; int r; - if (shmem_region == 0) + if (shmem_region == NULL) return 0; /* Register good old INTx */