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/170

-- gerrit

commit ff9007d51998cd7700e9700842dfddeefd46e24c
Author: Øyvind Harboe <oyvind.har...@zylin.com>
Date:   Sat Nov 5 13:16:23 2011 +0100

    dsp5680xx: fix warnings
    
    - propagate error
    - remove dead assignment
    
    Change-Id: I0d7078f531d96e421e95f08bfd908e818500d74c
    Signed-off-by: Øyvind Harboe <oyvind.har...@zylin.com>

diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c
index 116f609..2852b94 100644
--- a/src/target/dsp5680xx.c
+++ b/src/target/dsp5680xx.c
@@ -608,6 +608,7 @@ static int eonce_enter_debug_mode(struct target * target, 
uint16_t * eonce_statu
   retval = dsp5680xx_drscan(target,(uint8_t *) & instr_16,(uint8_t *) & 
read_16,8);
   instr_16 = 0x20;
   retval = dsp5680xx_drscan(target,(uint8_t *) & instr_16,(uint8_t *) & 
read_16,8);
+       err_check_propagate(retval);
   jtag_add_sleep(TIME_DIV_FREESCALE*100*1000);
   jtag_add_reset(0,0);
   jtag_add_sleep(TIME_DIV_FREESCALE*300*1000);
@@ -1447,7 +1448,6 @@ int dsp5680xx_f_erase(struct target * target, int first, 
int last){
     //Mass erase
     retval = mass_erase(target,&hfm_ustat);
     err_check_propagate(retval);
-    last = HFM_SECTOR_COUNT-1;
   }else{
     for(int i = first;i<=last;i++){
       retval = erase_sector(target,i,&hfm_ustat);

-- 

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Openocd-devel mailing list
Openocd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to