build: remove unused variables
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 9 Jan 2012 22:04:03 +0000 (22:04 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 12 Jan 2012 20:40:26 +0000 (20:40 +0000)
detected by clang.

Change-Id: Id9effcc5437870f37fecd33803f7753c6eca53d6
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/361
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
src/flash/nor/at91sam3.c
src/flash/nor/str7x.c
src/target/stm32_stlink.c

index dac901ecd54d5e20422169b54dc910ff0a5b5ce9..85395cdd85bc991264e5721b0b708c640dc5a26a 100644 (file)
@@ -3008,7 +3008,6 @@ sam3_write(struct flash_bank *bank,
                        goto done;
                }
                buffer += count;
                        goto done;
                }
                buffer += count;
-               count  -= count;
        }
        LOG_DEBUG("Done!");
        r = ERROR_OK;
        }
        LOG_DEBUG("Done!");
        r = ERROR_OK;
@@ -3029,7 +3028,6 @@ COMMAND_HANDLER(sam3_handle_info_command)
 
        unsigned x;
        int r;
 
        unsigned x;
        int r;
-       r = 0;
 
        // bank0 must exist before we can do anything
        if (pChip->details.bank[0].pBank == NULL) {
 
        // bank0 must exist before we can do anything
        if (pChip->details.bank[0].pBank == NULL) {
@@ -3114,13 +3112,11 @@ COMMAND_HANDLER(sam3_handle_gpnvm_command)
                }
        }
 
                }
        }
 
-
        switch (CMD_ARGC) {
        default:
                return ERROR_COMMAND_SYNTAX_ERROR;
                break;
        case 0:
        switch (CMD_ARGC) {
        default:
                return ERROR_COMMAND_SYNTAX_ERROR;
                break;
        case 0:
-               who = -1;
                goto showall;
                break;
        case 1:
                goto showall;
                break;
        case 1:
index 91ef77b709bf2b6585d5651df6121ce5df9acf6a..57f860d6aa3e8bf1a93e9fcc3f06f03426dd9cd4 100644 (file)
@@ -726,12 +726,10 @@ static int str7x_write(struct flash_bank *bank, uint8_t *buffer,
                /* data word 1 */
                target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR0),
                                4, 1, last_dword);
                /* data word 1 */
                target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR0),
                                4, 1, last_dword);
-               bytes_written += 4;
 
                /* data word 2 */
                target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR1),
                                4, 1, last_dword + 4);
 
                /* data word 2 */
                target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR1),
                                4, 1, last_dword + 4);
-               bytes_written += 4;
 
                /* start programming cycle */
                cmd = FLASH_DWPG | FLASH_WMS;
 
                /* start programming cycle */
                cmd = FLASH_DWPG | FLASH_WMS;
index c39d4c80a50590d852d80196788bb51177f809c8..fce9b7fb2e389acfaf52cc7147d6d15013feaa60 100644 (file)
@@ -511,7 +511,6 @@ static int stm32_stlink_step(struct target *target, int current,
                return ERROR_TARGET_NOT_HALTED;
        }
 
                return ERROR_TARGET_NOT_HALTED;
        }
 
-       pc = armv7m->arm.pc;
        if (!current) {
                buf_set_u32(pc->value, 0, 32, address);
                pc->dirty = true;
        if (!current) {
                buf_set_u32(pc->value, 0, 32, address);
                pc->dirty = true;

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)