TARGET: fix handling return code of MMU translation
Function armv4_5_mmu_translate_va() now properly signals errors in the return value. Remove former error handling by setting variable "type" to value "-1". Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Øyvind Harboe
parent
dcc7de4f9b
commit
ce58ab9a4e
@@ -1825,10 +1825,6 @@ static int cortex_a8_virt2phys(struct target *target,
|
||||
/* Reset the flag. We don't want someone else to use it by error */
|
||||
cortex_a8->current_address_mode = ARM_MODE_ANY;
|
||||
|
||||
if (type == -1)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
*phys = ret;
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user