From: Richard Genoud Date: Tue, 3 Nov 2020 11:11:12 +0000 (+0100) Subject: fs/squashfs: sqfs_read: remove useless sqfs_closedir() X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=b34949fe9baaae49003b2981213495bab3afef9b;p=u-boot.git 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 --- 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; }