Skip to content

Commit 8b57de1

Browse files
ColinIanKingtytso
authored andcommitted
jbd2: remove redundant assignement to variable err
The variable err is being assigned a value that is never read, it is being re-assigned inside the following while loop and also after the while loop. The assignment is redundant and can be removed. Cleans up clang scan build warning: fs/jbd2/commit.c:574:2: warning: Value stored to 'err' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent df0b5af commit 8b57de1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/jbd2/commit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ void jbd2_journal_commit_transaction(journal_t *journal)
571571
J_ASSERT(commit_transaction->t_nr_buffers <=
572572
atomic_read(&commit_transaction->t_outstanding_credits));
573573

574-
err = 0;
575574
bufs = 0;
576575
descriptor = NULL;
577576
while (commit_transaction->t_buffers) {

0 commit comments

Comments
 (0)