From 471dc491ab8aef531e61b50801920161dbe2ab65 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Tue, 3 Nov 2020 12:11:12 +0100 Subject: [PATCH] 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 [jh80.chung: cherry picked from mainline commit b34949fe9baaae49003b2981213495bab3afef9b] Signed-off-by: Jaehoon Chung Change-Id: Id61d825b7976f151a77738dadf5c99ba0613d955 --- fs/squashfs/sqfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index f824339..8e2863a 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -1326,7 +1326,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; } -- 2.7.4