[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210503185758.GA2192105@robh.at.kernel.org>
Date: Mon, 3 May 2021 13:57:58 -0500
From: Rob Herring <robh@...nel.org>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Cc: frowand.list@...il.com, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, robh+dt@...nel.org
Subject: Re: [PATCH] of: overlay: Remove redundant assignment to ret
On Sun, 25 Apr 2021 18:40:58 +0800, Jiapeng Chong wrote:
> Variable ret is set to zero but this value is never read as it is
> overwritten with a new value later on, hence it is a redundant
> assignment and can be removed.
>
> Cleans up the following clang-analyzer warning:
>
> drivers/of/overlay.c:1197:2: warning: Value stored to 'ret' is never
> read [clang-analyzer-deadcode.DeadStores].
>
> drivers/of/overlay.c:1026:2: warning: Value stored to 'ret' 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>
> ---
> drivers/of/overlay.c | 3 ---
> 1 file changed, 3 deletions(-)
>
Applied, thanks!
Powered by blists - more mailing lists