tms470: removed unnecessary operations

This should silence a warning.

Change-Id: Id91a9ebacae836083b1db2654a8e7bf24b2300e9
Signed-off-by: Edgar Grimberg <edgar.grimberg@gmail.com>
Reviewed-on: http://openocd.zylin.com/52
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
__archive__
Edgar Grimberg 2011-10-23 11:39:50 +02:00 committed by Øyvind Harboe
parent 811f7d3f7e
commit 0577ba8331
1 changed files with 2 additions and 4 deletions

View File

@ -1244,13 +1244,11 @@ static int get_tms470_info(struct flash_bank *bank, char *buf, int buf_size)
return ERROR_FLASH_OPERATION_FAILED;
}
used += snprintf(buf, buf_size, "\ntms470 information: Chip is %s\n", tms470_info->part_name);
used = snprintf(buf, buf_size, "\ntms470 information: Chip is %s\n", tms470_info->part_name);
buf += used;
buf_size -= used;
used += snprintf(buf, buf_size, "Flash protection level 2 is %s\n", tms470_check_flash_unlocked(bank->target) == ERROR_OK ? "disabled" : "enabled");
buf += used;
buf_size -= used;
snprintf(buf, buf_size, "Flash protection level 2 is %s\n", tms470_check_flash_unlocked(bank->target) == ERROR_OK ? "disabled" : "enabled");
return ERROR_OK;
}