From 66f42b6f74125a98fed6d9402f6dc83a0f829100 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Tue, 15 Jun 2010 23:14:41 +0200 Subject: [PATCH] arm_adi: -Wshadow warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/target/arm_adi_v5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 8f43f78a8..aae60fc1f 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. */ -- 2.30.2