diff options
author | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
commit | 2178f71f2e77c78b7bc3d46b91b77454e016898f (patch) | |
tree | abe94c80178efac6395942f71bbcc85822ceb869 /kexec/arch/arm/kexec-zImage-arm.c | |
parent | c986de289120d449bf4d94c46c676566ccfd4202 (diff) |
arm: Initialise initrd_start in zImage_arm_load()
Although the following compiler warning is bogus
it seems harmless to initialise initrd_start to NULL.
# arm-unknown-linux-gnu-gcc --version
arm-unknown-linux-gnu-gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# make
kexec/arch/arm/kexec-zImage-arm.c: In function 'zImage_arm_load':
kexec/arch/arm/kexec-zImage-arm.c:135: warning: 'initrd_start' may be used
uninitialized in this function
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/arm/kexec-zImage-arm.c')
-rw-r--r-- | kexec/arch/arm/kexec-zImage-arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/arm/kexec-zImage-arm.c b/kexec/arch/arm/kexec-zImage-arm.c index bf73445..3bb49a7 100644 --- a/kexec/arch/arm/kexec-zImage-arm.c +++ b/kexec/arch/arm/kexec-zImage-arm.c @@ -132,7 +132,7 @@ int atag_arm_load(struct kexec_info *info, unsigned long base, char *buf; off_t len; struct tag *params; - uint32_t *initrd_start; + uint32_t *initrd_start = NULL; buf = xmalloc(getpagesize()); if (!buf) { |