This is an automated email from Gerrit.

?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/166

-- gerrit

commit 4d060d29f5cbafd6703bd36d3ce096d19bdc3a9e
Author: Øyvind Harboe <oyvind.har...@zylin.com>
Date:   Thu Nov 3 21:51:31 2011 +0100

    avr32_regs: add missing error propagation
    
    Change-Id: Ie8b141dd534d73eccfc045069d5f628bd1eea88e
    Signed-off-by: Øyvind Harboe <oyvind.har...@zylin.com>

diff --git a/src/target/avr32_regs.c b/src/target/avr32_regs.c
index eb283fc..e3761ad 100644
--- a/src/target/avr32_regs.c
+++ b/src/target/avr32_regs.c
@@ -97,6 +97,9 @@ int avr32_jtag_write_regs(struct avr32_jtag *jtag_info, 
uint32_t *regs)
        int i, retval;
 
        retval = avr32_jtag_write_reg(jtag_info, 0, regs[AVR32_REG_SR]);
+       if (retval != ERROR_OK)
+               return retval;
+
        /* Restore Status reg */
        retval = avr32_jtag_exec(jtag_info, MTSR(0, 0));
        if (retval != ERROR_OK)

-- 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to