summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:14:41 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:14:41 +0200
commit66f42b6f74125a98fed6d9402f6dc83a0f829100 (patch)
tree904a4685c7d4315d355e287b7cab75e1cfe93f9f /src
parenta09d6020e08ce1b81e8bf2647cd88ecab5c25887 (diff)
downloadopenocd_libswd-66f42b6f74125a98fed6d9402f6dc83a0f829100.tar.gz
openocd_libswd-66f42b6f74125a98fed6d9402f6dc83a0f829100.tar.bz2
openocd_libswd-66f42b6f74125a98fed6d9402f6dc83a0f829100.tar.xz
openocd_libswd-66f42b6f74125a98fed6d9402f6dc83a0f829100.zip
arm_adi: -Wshadow warning fix
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r--src/target/arm_adi_v5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 8f43f78a..aae60fc1 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -102,11 +102,11 @@ static uint32_t max_tar_block_size(uint32_t tar_autoincr_block, uint32_t address
*/
void dap_ap_select(struct adiv5_dap *dap,uint8_t apsel)
{
- uint32_t select = (apsel << 24) & 0xFF000000;
+ uint32_t select_apsel = (apsel << 24) & 0xFF000000;
- if (select != dap->apsel)
+ if (select_apsel != dap->apsel)
{
- dap->apsel = select;
+ dap->apsel = select_apsel;
/* Switching AP invalidates cached values.
* Values MUST BE UPDATED BEFORE AP ACCESS.
*/