]> git.sur5r.net Git - openocd/blobdiff - src/target/arm920t.c
TARGET: removed unsed parameter
[openocd] / src / target / arm920t.c
index d7096486b8b990adf21a5a9e6b8ada7b9932f3da..b8ff8191e66dbe995f788417e8cdb68fd629d0a1 100644 (file)
@@ -508,7 +508,6 @@ static int arm920_mmu(struct target *target, int *enabled)
 static int arm920_virt2phys(struct target *target,
                uint32_t virt, uint32_t *phys)
 {
-       int type;
        uint32_t cb;
        int domain;
        uint32_t ap;
@@ -516,13 +515,9 @@ static int arm920_virt2phys(struct target *target,
 
        uint32_t ret;
        int retval = armv4_5_mmu_translate_va(target,
-                       &arm920t->armv4_5_mmu, virt, &type, &cb, &domain, &ap, &ret);
+                       &arm920t->armv4_5_mmu, virt, &cb, &domain, &ap, &ret);
        if (retval != ERROR_OK)
                return retval;
-       if (type == -1)
-       {
-               return ret;
-       }
        *phys = ret;
        return ERROR_OK;
 }
@@ -583,7 +578,6 @@ int arm920t_write_memory(struct target *target, uint32_t address,
                 * in memory marked read only
                 * by MMU
                 */
-               int type;
                uint32_t cb;
                int domain;
                uint32_t ap;
@@ -593,11 +587,9 @@ int arm920t_write_memory(struct target *target, uint32_t address,
                 * We need physical address and cb
                 */
                retval = armv4_5_mmu_translate_va(target, &arm920t->armv4_5_mmu,
-                               address, &type, &cb, &domain, &ap, &pa);
+                               address, &cb, &domain, &ap, &pa);
                if (retval != ERROR_OK)
                        return retval;
-               if (type == -1)
-                       return pa;
 
                if (arm920t->armv4_5_mmu.armv4_5_cache.d_u_cache_enabled)
                {