public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michele Curti <michele.curti@gmail.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: x86@kernel.org, tglx@linutronix.de, mingo@redhat.com,
	hpa@zytor.com, linux-kernel@vger.kernel.org
Subject: [PATCH] x86/vdso: use NULL instead of zero
Date: Tue, 16 Sep 2014 10:31:09 +0200	[thread overview]
Message-ID: <20140916083109.GA802@powerline.azcom-win.it> (raw)
In-Reply-To: <20140916065732.GA19849@gmail.com>


x86/vdso: use NULL instead of zero in patch_vdso32()

Signed-off-by: Michele Curti <michele.curti@gmail.com>

diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c
index 1ad1026..a4647bc 100644
--- a/arch/x86/vdso/vma.c
+++ b/arch/x86/vdso/vma.c
@@ -34,7 +34,7 @@ static unsigned vdsox32_size;
 void __init patch_vdso32(void *vdso, size_t len)
 {
 	Elf32_Ehdr *hdr = vdso;
-	Elf32_Shdr *sechdrs, *alt_sec = 0;
+	Elf32_Shdr *sechdrs, *alt_sec = NULL;
 	char *secstrings;
 	void *alt_data;
 	int i;
-- 
2.1.0

Regards,
Michele


       reply	other threads:[~2014-09-16  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20140915143939.GA1953@powerline.azcom-win.it>
     [not found] ` <20140916065732.GA19849@gmail.com>
2014-09-16  8:31   ` Michele Curti [this message]
2014-09-16  8:36     ` [PATCH] x86/vdso: use NULL instead of zero Ingo Molnar

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=20140916083109.GA802@powerline.azcom-win.it \
    --to=michele.curti@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@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