mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 15:01:27 +02:00
gunzip.c: use block layer for writes
Call blk_dwrite to ensure that the block cache is notified if enabled and remove build breakage when CONFIG_BLK is enabled. Signed-off-by: Eric Nelson <eric@nelint.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
@@ -232,9 +232,8 @@ int gzwrite(unsigned char *src, int len,
|
|||||||
gzwrite_progress(iteration++,
|
gzwrite_progress(iteration++,
|
||||||
totalfilled,
|
totalfilled,
|
||||||
szexpected);
|
szexpected);
|
||||||
blocks_written = dev->block_write(dev, outblock,
|
blocks_written = blk_dwrite(dev, outblock,
|
||||||
writeblocks,
|
writeblocks, writebuf);
|
||||||
writebuf);
|
|
||||||
outblock += blocks_written;
|
outblock += blocks_written;
|
||||||
if (ctrlc()) {
|
if (ctrlc()) {
|
||||||
puts("abort\n");
|
puts("abort\n");
|
||||||
|
Reference in New Issue
Block a user