[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210302172214.GJ7604@twin.jikos.cz>
Date: Tue, 2 Mar 2021 18:22:14 +0100
From: David Sterba <dsterba@...e.cz>
To: Jiapeng Chong <jiapeng.chong@...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: Remove unused variable ret
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.
Powered by blists - more mailing lists