Re: [PATCH linux-next] fs: btrfs: fix returnvar.cocci warnings

From: David Sterba
Date: Fri Aug 20 2021 - 06:43:54 EST


On Thu, Aug 19, 2021 at 07:32:29PM -0700, jing yangyang wrote:
> Remove unneeded variables when "0" can be returned.
>
> Generated by: scripts/coccinelle/misc/returnvar.cocci

Fixing that needs much more work that's not obvious from the function
itself.