From f28a5d9217fad9b5baf65eb6fa0deda4b9c89203 Mon Sep 17 00:00:00 2001 From: Linus Tolke Date: Tue, 24 Apr 2012 21:55:51 +0200 Subject: [PATCH] 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 --- src/flash/nor/stellaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5