From: Richard Genoud Date: Tue, 3 Nov 2020 11:11:10 +0000 (+0100) Subject: fs/squashfs: sqfs_size: remove useless sqfs_closedir() X-Git-Tag: submit/tizen/20210106.015723~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19dd868da89e48d20e52fdc5ce2bab6971ca3e9f;p=platform%2Fkernel%2Fu-boot.git 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 [jh80.chung: cherry picked from mainline commit 35475f83a107901551c31f7bc70f5266862a33e4] Signed-off-by: Jaehoon Chung Change-Id: I809ae83d5949f86d547b52982cf318e7202a6868 --- diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index c3b662e311..79a465e203 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -1560,7 +1560,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; }