[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211025082045.GC36125@gauss3.secunet.de>
Date: Mon, 25 Oct 2021 10:20:45 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: luo penghao <cgel.zte@...il.com>
CC: SimonHorman <horms@...nel.org>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
Herbert Xu <herbert@...dor.apana.org.au>,
"luo penghao" <luo.penghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH linux-next] xfrm: Remove redundant fields and related
parentheses
On Fri, Oct 22, 2021 at 09:59:11AM +0000, luo penghao wrote:
> The variable err is not necessary in such places. It should be revmoved
> for the simplicity of the code. This will cause the double parentheses
> to be redundant, and the inner parentheses should be deleted.
>
> The clang_analyzer complains as follows:
>
> net/xfrm/xfrm_input.c:533: warning:
> net/xfrm/xfrm_input.c:563: warning:
>
> Although the value stored to 'err' is used in the enclosing expression,
> the value is never actually read from 'err'.
>
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: luo penghao <luo.penghao@....com.cn>
Is this an update to your previous patch?
If so, please mark it as such with a 'v2'
and describe what changed.
Thanks!
Powered by blists - more mailing lists