# Re: \[PATCH\] ext4: scope ret locally in ext4\_try\_to\_trim\_range()

- From: Theodore Ts'o \<tytso@mit.edu\>
- Date: 2021-10-28 14:59:45 
- List: linux-ext4
- Page: https://ratatoskr.run/linux-ext4/2021/10/1557024
- Thread: https://ratatoskr.run/linux-ext4/2021/08/1483898/t.md

```text
On Fri, 20 Aug 2021 14:08:53 +0200, Lukas Bulwahn wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/1] ext4: scope ret locally in ext4_try_to_trim_range()
      commit: fd7a2ed7b32a4ee41477a5326941b95650575c84

Best regards,
-- 
Theodore Ts'o [ref]
```
