fs/squashfs: sqfs_read: 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
d1d8d75f69
commit
b34949fe9b
@ -1323,7 +1323,6 @@ int sqfs_read(const char *filename, void *buf, loff_t offset, loff_t len,
|
||||
sqfs_split_path(&file, &dir, filename);
|
||||
ret = sqfs_opendir(dir, &dirsp);
|
||||
if (ret) {
|
||||
sqfs_closedir(dirsp);
|
||||
goto free_paths;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user