]> git.sur5r.net Git - openocd/commitdiff
fixed warning
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 19 Aug 2008 17:25:21 +0000 (17:25 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 19 Aug 2008 17:25:21 +0000 (17:25 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@946 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/mips32_pracc.c

index d6351f9ec958df159e0b3072036ddaa4ae381939..5f8b0cee5bcc6c1708a30d6a26b96bdf9f9b0183 100644 (file)
@@ -266,7 +266,7 @@ int mips32_pracc_read_mem32(mips_ejtag_t *ejtag_info, u32 addr, int count, u32 *
                MIPS32_NOP,
        };
        
-       int retval;
+       int retval=ERROR_OK;
        int blocksize;
        int bytesread;
        u32 param_in[2];
@@ -282,9 +282,11 @@ int mips32_pracc_read_mem32(mips_ejtag_t *ejtag_info, u32 addr, int count, u32 *
                param_in[0] = addr;
                param_in[1] = blocksize;
                
-               if ((retval = mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, \
+               if ((retval = mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, 
                        sizeof(param_in)/sizeof(param_in[0]), param_in, blocksize, &buf[bytesread], 1)) != ERROR_OK)
+               {
                        return retval;
+               }
                
                count -= blocksize;
                addr += blocksize;