summaryrefslogtreecommitdiff
path: root/kexec/arch/sh/kexec-zImage-sh.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
committerSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
commit3d6c264eaa4be13208905867e31320ddc30471ae (patch)
treedbafb986f39f40c6df88ae4b43f33fedc20eb0b7 /kexec/arch/sh/kexec-zImage-sh.c
parent48f3ad610b7098659064801f8dc9688e8795a42d (diff)
Avoid possible overflows from signed/unsigned comparisons
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/sh/kexec-zImage-sh.c')
-rw-r--r--kexec/arch/sh/kexec-zImage-sh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/sh/kexec-zImage-sh.c b/kexec/arch/sh/kexec-zImage-sh.c
index 5001239..c38fd55 100644
--- a/kexec/arch/sh/kexec-zImage-sh.c
+++ b/kexec/arch/sh/kexec-zImage-sh.c
@@ -74,8 +74,8 @@ int zImage_sh_load(int argc, char **argv, const char *buf, off_t len,
struct kexec_info *info)
{
char *command_line;
- int opt, k;
- unsigned long empty_zero, zero_page_base, zero_page_size;
+ int opt;
+ unsigned long empty_zero, zero_page_base, zero_page_size, k;
unsigned long image_base;
char *param;