TARGET/ARM920T: fix compile warning
Commit 0538081246
introduces a compile time warning:
arm920t.c: In function ‘arm920t_write_memory’:
arm920t.c:567: warning: ‘retval’ may be used uninitialized in this function
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
__archive__
parent
4532dc7831
commit
20724e3325
|
@ -592,7 +592,7 @@ int arm920t_write_memory(struct target *target, uint32_t address,
|
|||
/*
|
||||
* We need physical address and cb
|
||||
*/
|
||||
int retval = armv4_5_mmu_translate_va(target, &arm920t->armv4_5_mmu,
|
||||
retval = armv4_5_mmu_translate_va(target, &arm920t->armv4_5_mmu,
|
||||
address, &type, &cb, &domain, &ap, &pa);
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
|
Loading…
Reference in New Issue