This is an automated email from Gerrit. Mirela Tauciuc ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/726
-- gerrit commit 854333b0cb9cb5dec423e3df16c936f365b87f42 Author: Mirela Tauciuc <[email protected]> Date: Mon Jun 25 11:16:48 2012 +0300 AT91SAM7 Flash: fixed a redundant assignation warning Change-Id: I009b285ed817a86eae2119e48d4076fda08691de Signed-off-by: Mirela Tauciuc <[email protected]> diff --git a/src/flash/nor/at91sam7.c b/src/flash/nor/at91sam7.c index e46122a..34adffe 100644 --- a/src/flash/nor/at91sam7.c +++ b/src/flash/nor/at91sam7.c @@ -353,10 +353,8 @@ static int at91sam7_flash_command(struct flash_bank *bank, uint8_t cmd, uint16_t /* Read device id register, main clock frequency register and fill in driver info structure */ static int at91sam7_read_part_info(struct flash_bank *bank) { - struct flash_bank *t_bank = bank; struct at91sam7_flash_bank *at91sam7_info; - struct target *target = t_bank->target; - + struct target *target = bank->target; uint16_t bnk, sec; uint16_t arch; uint32_t cidr; @@ -370,12 +368,12 @@ static int at91sam7_read_part_info(struct flash_bank *bank) uint32_t base_address = 0; char *target_name_t = "Unknown"; - at91sam7_info = t_bank->driver_priv; + at91sam7_info = bank->driver_priv; if (at91sam7_info->cidr != 0) { /* flash already configured, update clock and check for protected sectors */ struct flash_bank *fb = bank; - t_bank = fb; + struct flash_bank *t_bank = bank; while (t_bank) { /* re-calculate master clock frequency */ @@ -404,7 +402,8 @@ static int at91sam7_read_part_info(struct flash_bank *bank) if (at91sam7_info->flash_autodetection == 0) { /* banks and sectors are already created, based on data from input file */ struct flash_bank *fb = bank; - t_bank = fb; + struct flash_bank *t_bank = bank; + while (t_bank) { at91sam7_info = t_bank->driver_priv; -- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
