diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2019-04-21 15:33:23 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@aol.com> | 2019-08-03 11:18:30 +0800 |
commit | 0e97ebccc0db752a4ea55b30a0a79ae0f44c5014 (patch) | |
tree | bcbd676a7bcc75d1c1c095a148a889f41a63af35 /lib/compressor_lz4.c | |
parent | 66653ef10a7fb4da0296f9c42b4f51035282966f (diff) | |
download | erofs-utils-0e97ebccc0db752a4ea55b30a0a79ae0f44c5014.tar.gz |
erofs-utils: propagate compressed size to its callers
It will be later used for marking whether it can
decompress in-place.
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Diffstat (limited to 'lib/compressor_lz4.c')
-rw-r--r-- | lib/compressor_lz4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compressor_lz4.c b/lib/compressor_lz4.c index eacd21c..0d33223 100644 --- a/lib/compressor_lz4.c +++ b/lib/compressor_lz4.c @@ -21,7 +21,7 @@ static int lz4_compress_destsize(struct erofs_compress *c, if (!rc) return -EFAULT; *srcsize = srcSize; - return 0; + return rc; } static int compressor_lz4_exit(struct erofs_compress *c) |