Re: [PATCH] btrfs: turn btrfs_destroy_delayed_refs() into void function

From: David Sterba
Date: Tue Mar 09 2021 - 07:25:51 EST


On Tue, Mar 09, 2021 at 05:32:54PM +0800, Yang Li wrote:
> This function always return '0' and no callers use the return value.
> So make it a void function.
>
> This eliminates the following coccicheck warning:
> ./fs/btrfs/disk-io.c:4522:5-8: Unneeded variable: "ret". Return "0" on
> line 4530
>
> Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>

Can you please tell your robot to ignore this warning, I'm getting tired
to explain the same thing again,

https://lore.kernel.org/linux-btrfs/20210302120708.GH7604@xxxxxxx/

this is like 5th attempt to blindly fix a tool warning without
understanding the code.