jbd2: remove redundant assignement to variable err
authorColin Ian King <colin.i.king@gmail.com>
Wed, 10 Apr 2024 11:28:03 +0000 (12:28 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 May 2024 19:52:20 +0000 (15:52 -0400)
commit8b57de1c5edde3faf8a4f6a440b7ec16bb3c81d4
tree16e91d3ce772a7ba82cfdbd729d7fc3074142908
parentdf0b5afc62f3368d657a8fe4a8d393ac481474c2
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 <colin.i.king@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240410112803.232993-1-colin.i.king@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/commit.c