'sz' has no use for write_sparse_image, remove it simplifying the api.
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
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);
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);
void write_sparse_image(
struct sparse_storage *info, const char *part_name,
- void *data, unsigned sz)
+ void *data)
{
lbaint_t blk;
lbaint_t blkcnt;
}
void write_sparse_image(struct sparse_storage *info, const char *part_name,
- void *data, unsigned sz);
+ void *data);