diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-15 23:15:50 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-15 23:15:50 +0200 |
commit | ab6e62ab76226a4596f7f728d8915acb61507b44 (patch) | |
tree | 67b952f61c8a0fa574bcfa67421a237d89da4244 /src | |
parent | 66f42b6f74125a98fed6d9402f6dc83a0f829100 (diff) | |
download | openocd_libswd-ab6e62ab76226a4596f7f728d8915acb61507b44.tar.gz openocd_libswd-ab6e62ab76226a4596f7f728d8915acb61507b44.tar.bz2 openocd_libswd-ab6e62ab76226a4596f7f728d8915acb61507b44.tar.xz openocd_libswd-ab6e62ab76226a4596f7f728d8915acb61507b44.zip |
adi_v5_jtag: -Wshadow warning fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/adi_v5_jtag.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/adi_v5_jtag.c b/src/target/adi_v5_jtag.c index 04c6ae7b..b3687084 100644 --- a/src/target/adi_v5_jtag.c +++ b/src/target/adi_v5_jtag.c @@ -366,15 +366,15 @@ static int jtag_dp_q_write(struct adiv5_dap *dap, unsigned reg, /** Select the AP register bank matching bits 7:4 of reg. */ static int jtag_ap_q_bankselect(struct adiv5_dap *dap, unsigned reg) { - uint32_t select = reg & 0x000000F0; + uint32_t select_ap_bank = reg & 0x000000F0; - if (select == dap->ap_bank_value) + if (select_ap_bank == dap->ap_bank_value) return ERROR_OK; - dap->ap_bank_value = select; + dap->ap_bank_value = select_ap_bank; - select |= dap->apsel; + select_ap_bank |= dap->apsel; - return jtag_dp_q_write(dap, DP_SELECT, select); + return jtag_dp_q_write(dap, DP_SELECT, select_ap_bank); } static int jtag_ap_q_read(struct adiv5_dap *dap, unsigned reg, |