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:
parent
508a9dc7f6
commit
35475f83a1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user