Re: [PATCH linux-next] btrfs: remove redundant ret variable in delete_v1_space_cache

From: David Sterba
Date: Tue Nov 15 2022 - 08:11:54 EST


On Tue, Nov 15, 2022 at 09:14:56AM +0800, guo.ziliang@xxxxxxxxxx wrote:
> From: guo ziliang <guo.ziliang@xxxxxxxxxx>
> Return value from delete_block_group_cache() directly instead of taking
> this in another redundant variable.

Have you found this manually or by some tool? I did a quick grep and
found 14 other cases that could be simplified like that. I'm not sure if
we really need it, but if you fix more than one case then lets do it.