diff mbox

kvm tools: correctly compare pointer with NULL instead of 0

Message ID 1356030701-16284-4-git-send-email-sasha.levin@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sasha Levin Dec. 20, 2012, 7:11 p.m. UTC
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
 tools/kvm/hw/pci-shmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tools/kvm/hw/pci-shmem.c b/tools/kvm/hw/pci-shmem.c
index 00e5d93..ec3f771 100644
--- a/tools/kvm/hw/pci-shmem.c
+++ b/tools/kvm/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 */