From 6a3bf3e57149dcfdb447590049ef6cad6cf7258b Mon Sep 17 00:00:00 2001 From: Eric Nelson Date: Mon, 11 Apr 2016 15:21:37 -0700 Subject: 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 Reviewed-by: Stephen Warren --- lib/gunzip.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/gunzip.c b/lib/gunzip.c index 6d65ccccff..bc746d655e 100644 --- a/lib/gunzip.c +++ b/lib/gunzip.c @@ -232,9 +232,8 @@ int gzwrite(unsigned char *src, int len, gzwrite_progress(iteration++, totalfilled, szexpected); - blocks_written = dev->block_write(dev, outblock, - writeblocks, - writebuf); + blocks_written = blk_dwrite(dev, outblock, + writeblocks, writebuf); outblock += blocks_written; if (ctrlc()) { puts("abort\n"); -- cgit v1.2.1