[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210309122248.GG7604@twin.jikos.cz>
Date: Tue, 9 Mar 2021 13:22:48 +0100
From: David Sterba <dsterba@...e.cz>
To: Yang Li <yang.lee@...ux.alibaba.com>
Cc: clm@...com, josef@...icpanda.com, dsterba@...e.com,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: turn btrfs_destroy_delayed_refs() into void
function
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@...ux.alibaba.com>
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@suse.cz/
this is like 5th attempt to blindly fix a tool warning without
understanding the code.
Powered by blists - more mailing lists