]> git.sur5r.net Git - openocd/blobdiff - src/target/xscale.c
arm_dpm: -Wshadow warning fix
[openocd] / src / target / xscale.c
index d16f8ec1facfff9b96645115e0818fabbbb2ec44..d5c212999b8a6bf239d7038b8747d2e4d5b91ef8 100644 (file)
@@ -3216,10 +3216,7 @@ static int xscale_virt2phys(struct target *target,
                uint32_t virtual, uint32_t *physical)
 {
        struct xscale_common *xscale = target_to_xscale(target);
-       int type;
        uint32_t cb;
-       int domain;
-       uint32_t ap;
 
        if (xscale->common_magic != XSCALE_COMMON_MAGIC) {
                LOG_ERROR(xscale_not);
@@ -3227,7 +3224,8 @@ static int xscale_virt2phys(struct target *target,
        }
 
        uint32_t ret;
-       int retval = armv4_5_mmu_translate_va(target, &xscale->armv4_5_mmu, virtual, &type, &cb, &domain, &ap, &ret);
+       int retval = armv4_5_mmu_translate_va(target, &xscale->armv4_5_mmu,
+                       virtual, &cb, &ret);
        if (retval != ERROR_OK)
                return retval;
        *physical = ret;