Commit 6d25bd3e authored by Richard Genoud's avatar Richard Genoud Committed by Tom Rini
Browse files

fs/squashfs: sqfs_probe: use sqfs_decompressor_init() return value



sqfs_decompressor_init() returns a value, so it's better to use it than
to force the return value to EINVAL (it could be ENOMEM)
Reviewed-by: default avatarJoao Marcos Costa <jmcosta944@gmail.com>
Signed-off-by: default avatarRichard Genoud <richard.genoud@posteo.net>
parent 56cf1cee
...@@ -1097,9 +1097,7 @@ int sqfs_probe(struct blk_desc *fs_dev_desc, struct disk_partition *fs_partition ...@@ -1097,9 +1097,7 @@ int sqfs_probe(struct blk_desc *fs_dev_desc, struct disk_partition *fs_partition
ctxt.sblk = sblk; ctxt.sblk = sblk;
ret = sqfs_decompressor_init(&ctxt); ret = sqfs_decompressor_init(&ctxt);
if (ret) { if (ret) {
ret = -EINVAL;
goto error; goto error;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment