Browse Source

dsp563xx_once: fix warning and potential bug

I don't think dsp563xx_once_read_register() would ever
be called with len==0, but it would have been broken in
that case.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
tags/v0.5.0-rc1
Øyvind Harboe 13 years ago
parent
commit
17201b5847
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/target/dsp563xx_once.c

+ 1
- 1
src/target/dsp563xx_once.c View File

@@ -188,7 +188,7 @@ int dsp563xx_once_request_debug(struct jtag_tap *tap, int reset_state)
int dsp563xx_once_read_register(struct jtag_tap *tap, int flush, struct once_reg *regs, int len)
{
int i;
int err;
int err = ERROR_OK;

for (i = 0; i < len; i++)
{


Loading…
Cancel
Save