From: Linus Tolke Date: Tue, 24 Apr 2012 19:55:51 +0000 (+0200) Subject: topic: Fixed a clang Dead assignment warning. X-Git-Tag: v0.6.0-rc1~126 X-Git-Url: https://review.openocd.org/gitweb?a=commitdiff_plain;h=f28a5d9217fad9b5baf65eb6fa0deda4b9c89203;hp=63e5386fa656f684d101444c31d80ea463b25027;p=openocd.git 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 Reviewed-on: http://openocd.zylin.com/596 Tested-by: jenkins Reviewed-by: Peter Stuge --- diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index 96a15d4281..b167fb78c5 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);