[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2450db09-4029-df92-1c6e-bb5376b74ead@suse.com>
Date: Fri, 21 Jan 2022 13:48:09 +0200
From: Nikolay Borisov <nborisov@...e.com>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>, clm@...com
Cc: josef@...icpanda.com, dsterba@...e.com,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: Re: [PATCH v2] btrfs: zoned: Remove redundant initialization of
to_add
On 21.01.22 г. 13:43, Jiapeng Chong wrote:
> to_add is being initialized to len but this is never read as
> to_add is overwritten later on. Remove the redundant
> initialization.
>
> Cleans up the following clang-analyzer warning:
>
> fs/btrfs/extent-tree.c:2769:8: warning: Value stored to 'to_add' during
> its initialization is never read [clang-analyzer-deadcode.DeadStores].
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Reviewed-by: Nikolay Borisov <nborisov@...e.com>
Powered by blists - more mailing lists