From: "Cong WANG" <xiyou.wangcong@gmail.com>
To: linux-kernel@vger.kernel.org, avi@qumranet.com
Subject: [PATCH]Replace 0 with NULL when returning a pointer
Date: Mon, 12 Mar 2007 14:50:38 +0800 [thread overview]
Message-ID: <2375c9f90703112350m5d28bacj4745913261a6bec5@mail.gmail.com> (raw)
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@gmail.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)
next reply other threads:[~2007-03-12 6:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-12 6:50 Cong WANG [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-03-12 6:47 Cong WANG
2007-03-12 12:16 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2375c9f90703112350m5d28bacj4745913261a6bec5@mail.gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=avi@qumranet.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®