]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs/squashfs: sqfs_read: remove useless sqfs_closedir()
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:12 +0000 (12:11 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
as sqfs_opendir failed, there's no need to call sqfs_closedir

Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c

index 13e64bea9346987ceff62a9690acca6f2772e479..1ac07625889ef6074a932a23c288ffe5479feb03 100644 (file)
@@ -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;
        }