diff options
author | Linus Tolke <linus@tigris.org> | 2012-04-24 21:55:51 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2012-04-24 20:31:19 +0000 |
commit | f28a5d9217fad9b5baf65eb6fa0deda4b9c89203 (patch) | |
tree | 39b378666ce1e0b2c0d5d60043a4d7675a43cf0f /src/flash/nor | |
parent | 63e5386fa656f684d101444c31d80ea463b25027 (diff) |
topic: Fixed a clang Dead assignment warning.
The value returned from target_write_buffer is still ignored.
Change-Id: Icb49d4d1313a5e4f7df68d3f122a5f81cfa0604a
Signed-off-by: Linus Tolke <linus@tigris.org>
Reviewed-on: http://openocd.zylin.com/596
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/flash/nor')
-rw-r--r-- | src/flash/nor/stellaris.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index 96a15d42..b167fb78 100644 --- a/src/flash/nor/stellaris.c +++ b/src/flash/nor/stellaris.c @@ -1039,7 +1039,7 @@ static int stellaris_write_block(struct flash_bank *bank, target_name(target), (unsigned) buffer_size); }; - retval = target_write_buffer(target, write_algorithm->address, + target_write_buffer(target, write_algorithm->address, sizeof(stellaris_write_code), (uint8_t *) stellaris_write_code); |