Browse Source

mips_ejtag: -Wshadow warning fixes

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

+ 2
- 2
src/target/mips_ejtag.c View File

@@ -304,7 +304,7 @@ int mips_ejtag_init(struct mips_ejtag *ejtag_info)
return ERROR_OK;
}

int mips_ejtag_fastdata_scan(struct mips_ejtag *ejtag_info, int write, uint32_t *data)
int mips_ejtag_fastdata_scan(struct mips_ejtag *ejtag_info, int write_t, uint32_t *data)
{
struct jtag_tap *tap;
tap = ejtag_info->tap;
@@ -325,7 +325,7 @@ int mips_ejtag_fastdata_scan(struct mips_ejtag *ejtag_info, int write, uint32_t
fields[1].num_bits = 32;
fields[1].out_value = t;

if (write)
if (write_t)
{
fields[1].in_value = NULL;
buf_set_u32(t, 0, 32, *data);


Loading…
Cancel
Save