Fix uninitialized PPC40x vars
PATCH 1/1 Fix uninitialized PPC40x vars
Fix more uninitialized variables in the PPC40x code.
Signed-off-by Matt Porter <[email protected]>
===== arch/ppc/boot/simple/misc-embedded.c 1.14 vs edited =====
arch/ppc/boot/simple/misc-embedded.c +1 -1
@@ -218,7 +218,7 @@puts ("done.\n" ); {struct bi_record *rec; -unsigned long initrd_loc; +unsigned long initrd_loc =0 ;unsigned long rec_loc =_ALIGN ((unsigned long )(zimage_size) + (1 <<20 ) -1 , (1 <<20 )); rec = (struct bi_record *)rec_loc;
===== arch/ppc/syslib/ppc405_pci.c 1.9 vs edited =====
arch/ppc/syslib/ppc405_pci.c +2 -2
@@ -82,8 +82,8 @@unsigned int tmp_addr;unsigned int tmp_size;unsigned int reg_index; -unsigned int new_pmm_max; -unsigned int new_pmm_min; +unsigned int new_pmm_max =0 ; +unsigned int new_pmm_min =0 ; isa_io_base =0 ; isa_mem_base =0 ;