From: Jassi Brar Date: Fri, 6 Apr 2018 06:34:52 +0000 (+0530) Subject: fastboot: sparse: remove redundant argument to write_sparse_image X-Git-Tag: v2018.07-rc1~230 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=32d3154e5c9fe396cd78e30af64b7f26523a04b5;p=u-boot 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 --- diff --git a/common/fb_mmc.c b/common/fb_mmc.c index b748b15f63..234ce83b80 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 3df0f7287e..d7d9eb08f6 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 ddf5772cf8..8ebd647e33 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; diff --git a/include/image-sparse.h b/include/image-sparse.h index 4d1f910487..72f4036d81 100644 --- a/include/image-sparse.h +++ b/include/image-sparse.h @@ -36,4 +36,4 @@ static inline int is_sparse_image(void *buf) } void write_sparse_image(struct sparse_storage *info, const char *part_name, - void *data, unsigned sz); + void *data);