fs/squashfs: sqfs_size: remove useless sqfs_closedir()
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:10 +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 3b008b5235c30adf07481212d496df0b832045d9..f4cac3e4bf032abcd29ad24f19672cfd18d6a970 100644 (file)
@@ -1557,7 +1557,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;
        }