mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ipq: Flash command code cleanup
Change-Id: I54b8677cba4b8a63b245bde8f1840d146d6694ee Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
This commit is contained in:
parent
b858c4fdae
commit
42a29e7793
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