diff options
author | Richard Genoud <richard.genoud@posteo.net> | 2020-11-03 14:11:22 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-19 17:45:49 +0300 |
commit | 6d25bd3e9c1d317cdbd52a4c6bba11f912bb4d6a (patch) | |
tree | 6ff2b88a0bb2c143a8de165559427c13831fcdac /fs/squashfs/sqfs.c | |
parent | 56cf1ceee38435a0c105d40336d12d19e1db8b1d (diff) | |
download | u-boot-6d25bd3e9c1d317cdbd52a4c6bba11f912bb4d6a.tar.xz |
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: Joao Marcos Costa <jmcosta944@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
Diffstat (limited to 'fs/squashfs/sqfs.c')
-rw-r--r-- | fs/squashfs/sqfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 96806a4a31..435081638b 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -1097,9 +1097,7 @@ int sqfs_probe(struct blk_desc *fs_dev_desc, struct disk_partition *fs_partition ctxt.sblk = sblk; ret = sqfs_decompressor_init(&ctxt); - if (ret) { - ret = -EINVAL; goto error; } |