diff options
author | Richard Genoud <richard.genoud@posteo.net> | 2020-11-03 12:11:12 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-19 09:45:49 -0500 |
commit | b34949fe9baaae49003b2981213495bab3afef9b (patch) | |
tree | 536112d50b7050fbbce806a41cac7cfc4ec1837a /fs | |
parent | d1d8d75f69f82f7ef7c55b58a7d9e73055956f3c (diff) | |
download | u-boot-b34949fe9baaae49003b2981213495bab3afef9b.tar.gz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/squashfs/sqfs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 13e64bea93..1ac0762588 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -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; } |