diff options
author | Jassi Brar | 2018-04-06 12:04:52 +0530 |
---|---|---|
committer | Tom Rini | 2018-05-07 20:57:51 -0400 |
commit | 32d3154e5c9fe396cd78e30af64b7f26523a04b5 (patch) | |
tree | 7260da37064a6e0961bcb68c11c7daf95f35863c /common | |
parent | a43d46a73cb2c40481791cb292b8eb0b5a80d55e (diff) |
fastboot: sparse: remove redundant argument to write_sparse_image
'sz' has no use for write_sparse_image, remove it simplifying the api.
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/fb_mmc.c | 3 | ||||
-rw-r--r-- | common/fb_nand.c | 3 | ||||
-rw-r--r-- | common/image-sparse.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/common/fb_mmc.c b/common/fb_mmc.c index b748b15f638..234ce83b802 100644 --- a/common/fb_mmc.c +++ b/common/fb_mmc.c @@ -342,8 +342,7 @@ void fb_mmc_flash_write(const char *cmd, void *download_buffer, sparse.start); sparse.priv = &sparse_priv; - write_sparse_image(&sparse, cmd, download_buffer, - download_bytes); + write_sparse_image(&sparse, cmd, download_buffer); } else { write_raw_image(dev_desc, &info, cmd, download_buffer, download_bytes); diff --git a/common/fb_nand.c b/common/fb_nand.c index 3df0f7287e1..d7d9eb08f69 100644 --- a/common/fb_nand.c +++ b/common/fb_nand.c @@ -179,8 +179,7 @@ void fb_nand_flash_write(const char *cmd, void *download_buffer, sparse.start); sparse.priv = &sparse_priv; - write_sparse_image(&sparse, cmd, download_buffer, - download_bytes); + write_sparse_image(&sparse, cmd, download_buffer); } else { printf("Flashing raw image at offset 0x%llx\n", part->offset); diff --git a/common/image-sparse.c b/common/image-sparse.c index ddf5772cf82..8ebd647e337 100644 --- a/common/image-sparse.c +++ b/common/image-sparse.c @@ -51,7 +51,7 @@ void write_sparse_image( struct sparse_storage *info, const char *part_name, - void *data, unsigned sz) + void *data) { lbaint_t blk; lbaint_t blkcnt; |