mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
Merge "ipq: Flash command code cleanup"
This commit is contained in:
commit
3fa6b1cda1
1 changed files with 5 additions and 5 deletions
|
|
@ -271,11 +271,6 @@ char * const argv[])
|
|||
|
||||
if (flash_cmd) {
|
||||
|
||||
if (file_size > part_size) {
|
||||
printf("Image size is greater than partition memory\n");
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
||||
if (flash_type == SMEM_BOOT_NAND_FLASH) {
|
||||
|
||||
adj_size = file_size % nand->writesize;
|
||||
|
|
@ -293,6 +288,11 @@ char * const argv[])
|
|||
}
|
||||
}
|
||||
|
||||
if (file_size > part_size) {
|
||||
printf("Image size is greater than partition memory\n");
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
||||
ret = write_to_flash(flash_type, load_addr, offset, part_size,
|
||||
file_size, layout);
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue