[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2375c9f90703112350m5d28bacj4745913261a6bec5@mail.gmail.com>
Date: Mon, 12 Mar 2007 14:50:38 +0800
From: "Cong WANG" <xiyou.wangcong@...il.com>
To: linux-kernel@...r.kernel.org, avi@...ranet.com
Subject: [PATCH]Replace 0 with NULL when returning a pointer
Use NULL to indicate we are returning a pointer rather than an integer
and to eliminate some sparse warnings.
Signed-off-by: Cong WANG <xiyou.wangcong@...il.com>
---
--- drivers/kvm/vmx.c.orig 2007-03-11 21:41:03.000000000 +0800
+++ drivers/kvm/vmx.c 2007-03-12 14:25:11.000000000 +0800
@@ -98,7 +98,7 @@ static struct vmx_msr_entry *find_msr_en
for (i = 0; i < vcpu->nmsrs; ++i)
if (vcpu->guest_msrs[i].index == msr)
return &vcpu->guest_msrs[i];
- return 0;
+ return NULL;
}
static void vmcs_clear(struct vmcs *vmcs)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists