This is an automated email from Gerrit.

Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/361

-- gerrit

commit 2af3299cbaab14da8f8052f4c9dfd258f7ecc0b7
Author: Spencer Oliver <[email protected]>
Date:   Mon Jan 9 22:04:03 2012 +0000

    build: remove unused variables
    
    detected by clang.
    
    Change-Id: Id9effcc5437870f37fecd33803f7753c6eca53d6
    Signed-off-by: Spencer Oliver <[email protected]>

diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c
index dac901e..85395cd 100644
--- a/src/flash/nor/at91sam3.c
+++ b/src/flash/nor/at91sam3.c
@@ -3008,7 +3008,6 @@ sam3_write(struct flash_bank *bank,
                        goto done;
                }
                buffer += count;
-               count  -= count;
        }
        LOG_DEBUG("Done!");
        r = ERROR_OK;
@@ -3029,7 +3028,6 @@ COMMAND_HANDLER(sam3_handle_info_command)
 
        unsigned x;
        int r;
-       r = 0;
 
        // 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:
-               who = -1;
                goto showall;
                break;
        case 1:
diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c
index 91ef77b..57f860d 100644
--- a/src/flash/nor/str7x.c
+++ b/src/flash/nor/str7x.c
@@ -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);
-               bytes_written += 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;
diff --git a/src/target/stm32_stlink.c b/src/target/stm32_stlink.c
index c39d4c8..fce9b7f 100644
--- a/src/target/stm32_stlink.c
+++ b/src/target/stm32_stlink.c
@@ -511,7 +511,6 @@ static int stm32_stlink_step(struct target *target, int 
current,
                return ERROR_TARGET_NOT_HALTED;
        }
 
-       pc = armv7m->arm.pc;
        if (!current) {
                buf_set_u32(pc->value, 0, 32, address);
                pc->dirty = true;

-- 

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to