mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
Move test for unnecessary memmove to memmove_wd()
Signed-off-by: Larry Johnson <lrj@acm.org>
This commit is contained in:

committed by
Wolfgang Denk

parent
b050c72d52
commit
54fa2c5b51
@ -344,11 +344,8 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
|
||||
printf (" XIP %s ... ", type_name);
|
||||
} else {
|
||||
printf (" Loading %s ... ", type_name);
|
||||
|
||||
if (load != image_start) {
|
||||
memmove_wd ((void *)load,
|
||||
(void *)image_start, image_len, CHUNKSZ);
|
||||
}
|
||||
memmove_wd ((void *)load, (void *)image_start,
|
||||
image_len, CHUNKSZ);
|
||||
}
|
||||
*load_end = load + image_len;
|
||||
puts("OK\n");
|
||||
|
Reference in New Issue
Block a user