Browse Source

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>
tags/v0.6.0-rc1
Edgar Grimberg 12 years ago
committed by Øyvind Harboe
parent
commit
0577ba8331
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/flash/nor/tms470.c

+ 2
- 4
src/flash/nor/tms470.c 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;
}


Loading…
Cancel
Save