Thread (2 messages) 2 messages, 2 authors, 2021-03-02

Re: [PATCH] btrfs: Remove unused variable ret

From: David Sterba <hidden>
Date: 2021-03-02 20:40:19
Also in: lkml

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help