summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/machine_kexec_32.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-22 01:00:57 +0100
committerIngo Molnar <mingo@elte.hu>2009-02-22 09:27:11 +0100
commitfc6fcdfbb8f1b2553255170f221cd57a4108591f (patch)
treec9084c2a32d37a189bdfca0e39ba7f4523c14dc5 /arch/x86/kernel/machine_kexec_32.c
parentfdb17aeb28aaad3eae5ef57e70cb287d34d1049d (diff)
downloadlinux-fc6fcdfbb8f1b2553255170f221cd57a4108591f.tar.bz2
x86: kexec/i386: fix sparse warnings: Using plain integer as NULL pointer
Fix these sparse warnings: arch/x86/kernel/machine_kexec_32.c:124:22: warning: Using plain integer as NULL pointer arch/x86/kernel/traps.c:950:24: warning: Using plain integer as NULL pointer Signed-off-by: Hannes Eder <hannes@hanneseder.net> Cc: trivial@kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/machine_kexec_32.c')
-rw-r--r--arch/x86/kernel/machine_kexec_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c
index 37f420018a41..f5fc8c781a62 100644
--- a/arch/x86/kernel/machine_kexec_32.c
+++ b/arch/x86/kernel/machine_kexec_32.c
@@ -121,7 +121,7 @@ static void machine_kexec_page_table_set_one(
static void machine_kexec_prepare_page_tables(struct kimage *image)
{
void *control_page;
- pmd_t *pmd = 0;
+ pmd_t *pmd = NULL;
control_page = page_address(image->control_code_page);
#ifdef CONFIG_X86_PAE