On Fri, Feb 19, 2021 at 02:18:58PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./fs/btrfs/disk-io.c:4403:5-8: Unneeded variable: "ret". Return "0" on > line 4411.
That maybe stops the check to report the warning but it's not the right way to fix the code. The callees do not properly handle and propagate errors so that needs to be fixed, and the return value propagated from btrfs_destroy_delayed_refs.