diff options
| author | Colin Ian King <[email protected]> | 2024-04-10 11:28:03 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2024-05-07 19:52:20 +0000 |
| commit | 8b57de1c5edde3faf8a4f6a440b7ec16bb3c81d4 (patch) | |
| tree | 16e91d3ce772a7ba82cfdbd729d7fc3074142908 /fs/jbd2/commit.c | |
| parent | ext4: remove the redundant folio_wait_stable() (diff) | |
| download | kernel-8b57de1c5edde3faf8a4f6a440b7ec16bb3c81d4.tar.gz kernel-8b57de1c5edde3faf8a4f6a440b7ec16bb3c81d4.zip | |
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]>
Diffstat (limited to 'fs/jbd2/commit.c')
| -rw-r--r-- | fs/jbd2/commit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 5e122586e06e..78a9d08ae9f8 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -571,7 +571,6 @@ void jbd2_journal_commit_transaction(journal_t *journal) J_ASSERT(commit_transaction->t_nr_buffers <= atomic_read(&commit_transaction->t_outstanding_credits)); - err = 0; bufs = 0; descriptor = NULL; while (commit_transaction->t_buffers) { |
