Zach Welch <zw@superlucidity.net> fix at91sam7 uninitialized variable warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@1485 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
40b806bfe7
commit
6f7d3c9d5b
|
@ -322,11 +322,11 @@ static int at91sam7_read_part_info(struct flash_bank_s *bank)
|
||||||
u16 bnk, sec;
|
u16 bnk, sec;
|
||||||
u16 arch;
|
u16 arch;
|
||||||
u32 cidr;
|
u32 cidr;
|
||||||
u8 banks_num;
|
u8 banks_num = 0;
|
||||||
u16 num_nvmbits;
|
u16 num_nvmbits = 0;
|
||||||
u16 sectors_num;
|
u16 sectors_num = 0;
|
||||||
u16 pages_per_sector;
|
u16 pages_per_sector = 0;
|
||||||
u16 page_size;
|
u16 page_size = 0;
|
||||||
u32 ext_freq;
|
u32 ext_freq;
|
||||||
u32 bank_size;
|
u32 bank_size;
|
||||||
u32 base_address = 0;
|
u32 base_address = 0;
|
||||||
|
|
|
@ -611,7 +611,7 @@ static int pic32mx_probe(struct flash_bank_s *bank)
|
||||||
mips32_common_t *mips32 = target->arch_info;
|
mips32_common_t *mips32 = target->arch_info;
|
||||||
mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
|
mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
|
||||||
int i;
|
int i;
|
||||||
u16 num_pages;
|
u16 num_pages = 0;
|
||||||
u32 device_id;
|
u32 device_id;
|
||||||
int page_size;
|
int page_size;
|
||||||
|
|
||||||
|
@ -704,7 +704,7 @@ static int pic32mx_info(struct flash_bank_s *bank, char *buf, int buf_size)
|
||||||
mips32_common_t *mips32 = target->arch_info;
|
mips32_common_t *mips32 = target->arch_info;
|
||||||
mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
|
mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
|
||||||
u32 device_id;
|
u32 device_id;
|
||||||
int printed, i;
|
int printed = 0, i;
|
||||||
|
|
||||||
device_id = ejtag_info->idcode;
|
device_id = ejtag_info->idcode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue