Commit 4455c3f2 authored by Matt Porter's avatar Matt Porter Committed by Linus Torvalds

[PATCH] ppc32: Fix uninitialized PPC40x vars

Fix more uninitialized variables in the PPC40x code.
Signed-off-by: default avatarMatt Porter <mporter@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4357f614
...@@ -218,7 +218,7 @@ load_kernel(unsigned long load_addr, int num_words, unsigned long cksum, bd_t *b ...@@ -218,7 +218,7 @@ load_kernel(unsigned long load_addr, int num_words, unsigned long cksum, bd_t *b
puts("done.\n"); puts("done.\n");
{ {
struct bi_record *rec; struct bi_record *rec;
unsigned long initrd_loc; unsigned long initrd_loc = 0;
unsigned long rec_loc = _ALIGN((unsigned long)(zimage_size) + unsigned long rec_loc = _ALIGN((unsigned long)(zimage_size) +
(1 << 20) - 1, (1 << 20)); (1 << 20) - 1, (1 << 20));
rec = (struct bi_record *)rec_loc; rec = (struct bi_record *)rec_loc;
......
...@@ -82,8 +82,8 @@ ppc4xx_find_bridges(void) ...@@ -82,8 +82,8 @@ ppc4xx_find_bridges(void)
unsigned int tmp_addr; unsigned int tmp_addr;
unsigned int tmp_size; unsigned int tmp_size;
unsigned int reg_index; unsigned int reg_index;
unsigned int new_pmm_max; unsigned int new_pmm_max = 0;
unsigned int new_pmm_min; unsigned int new_pmm_min = 0;
isa_io_base = 0; isa_io_base = 0;
isa_mem_base = 0; isa_mem_base = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment