]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad0334824dfac4ec3f858fa265f9e0f9e29f9e8f
tree47765718ac2f1993b1eb59917324fe6b4a73d76e
parent70469878d8c688907dc091fe50fb7f91ed8feeb8
ext4: scope ret locally in ext4_try_to_trim_range()

As commit c905a8185a3a ("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