diff options
author | Joao Marcos Costa <joaomarcos.costa@bootlin.com> | 2020-08-18 17:17:22 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-24 14:11:31 -0400 |
commit | cdc114415cb9b326545aaaf6226ed3622e057067 (patch) | |
tree | d23f9358ae822e0d0f916ecb2defb60e0578832f /fs/squashfs/sqfs_decompressor.c | |
parent | 10f7cf5f12a8721d6c985d4de11dac4d19e0e47e (diff) |
fs/squashfs: replace sqfs_decompress() parameter
Replace 'u16 comp_type' by a reference to squashfs_ctxt structure.
Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Diffstat (limited to 'fs/squashfs/sqfs_decompressor.c')
-rw-r--r-- | fs/squashfs/sqfs_decompressor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/squashfs/sqfs_decompressor.c b/fs/squashfs/sqfs_decompressor.c index 633a8a1818..cf388ace58 100644 --- a/fs/squashfs/sqfs_decompressor.c +++ b/fs/squashfs/sqfs_decompressor.c @@ -62,9 +62,10 @@ static void zlib_decompression_status(int ret) } #endif -int sqfs_decompress(u16 comp_type, void *dest, unsigned long *dest_len, - void *source, u32 src_len) +int sqfs_decompress(struct squashfs_ctxt *ctxt, void *dest, + unsigned long *dest_len, void *source, u32 src_len) { + u16 comp_type = get_unaligned_le16(&ctxt->sblk->compression); int ret = 0; switch (comp_type) { |