]> git.sur5r.net Git - openocd/commitdiff
topic: Fixed a clang Dead assignment warning.
authorLinus Tolke <linus@tigris.org>
Tue, 24 Apr 2012 19:55:51 +0000 (21:55 +0200)
committerPeter Stuge <peter@stuge.se>
Tue, 24 Apr 2012 20:31:19 +0000 (20:31 +0000)
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>
src/flash/nor/stellaris.c

index 96a15d428191a465e0f5cce35ab3129fda8e02bd..b167fb78c5f35f18e71b14308346c61dda6444d5 100644 (file)
@@ -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);