summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 17:25:21 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 17:25:21 +0000
commitb8387ea272771accd2681b75b805043ae9d2b82a (patch)
tree5aa8f494ae6ccdce2bab19a0987b9ceda86cc743 /src
parentd8057f6db1e6a466e53eba7e194130d52093445f (diff)
downloadopenocd+libswd-b8387ea272771accd2681b75b805043ae9d2b82a.tar.gz
openocd+libswd-b8387ea272771accd2681b75b805043ae9d2b82a.tar.bz2
openocd+libswd-b8387ea272771accd2681b75b805043ae9d2b82a.tar.xz
openocd+libswd-b8387ea272771accd2681b75b805043ae9d2b82a.zip
fixed warning
git-svn-id: svn://svn.berlios.de/openocd/trunk@946 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/mips32_pracc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/target/mips32_pracc.c b/src/target/mips32_pracc.c
index d6351f9e..5f8b0cee 100644
--- a/src/target/mips32_pracc.c
+++ b/src/target/mips32_pracc.c
@@ -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;