ext4: scope ret locally in ext4_try_to_trim_range()
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Fri, 20 Aug 2021 12:08:53 +0000 (14:08 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Nov 2021 14:33:25 +0000 (10:33 -0400)
commitafcc4e32f606dbfb47aa7309172c89174b86e74c
tree47765718ac2f1993b1eb59917324fe6b4a73d76e
parent3bbef91bdd2180c67407285ba160b023eb4d5306
ext4: scope ret locally in ext4_try_to_trim_range()

As commit 6920b3913235 ("ext4: add new helper interface
ext4_try_to_trim_range()") moves some code into the separate function
ext4_try_to_trim_range(), the use of the variable ret within that
function is more limited and can be adjusted as well.

Scope the use of the variable ret locally and drop dead assignments.

No functional change.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Link: https://lore.kernel.org/r/20210820120853.23134-1-lukas.bulwahn@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c