fs/squashfs: sqfs_size: remove useless sqfs_closedir()

as sqfs_opendir failed, there's no need to call sqfs_closedir

Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
This commit is contained in:
Richard Genoud 2020-11-03 12:11:10 +01:00 committed by Tom Rini
parent 508a9dc7f6
commit 35475f83a1

View File

@ -1557,7 +1557,6 @@ int sqfs_size(const char *filename, loff_t *size)
*/
ret = sqfs_opendir(dir, &dirsp);
if (ret) {
sqfs_closedir(dirsp);
ret = -EINVAL;
goto free_strings;
}