jbd2: fix clang warning in recovery.c
authorTheodore Ts'o <tytso@mit.edu>
Tue, 10 Aug 2021 16:55:51 +0000 (12:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 Aug 2021 16:55:51 +0000 (12:55 -0400)
Remove unused variable store which was never used.

This fix is also in e2fsprogs commit 99a2294f85f0 ("e2fsck: value
stored to err is never read").

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/recovery.c

index 4c42092..ba979fc 100644 (file)
@@ -760,7 +760,6 @@ static int do_one_pass(journal_t *journal,
                                 */
                                jbd_debug(1, "JBD2: Invalid checksum ignored in transaction %u, likely stale data\n",
                                          next_commit_ID);
-                               err = 0;
                                brelse(bh);
                                goto done;
                        }