Re: [PATCH linux-next] xfrm: Remove duplicate assignment

From: Steffen Klassert
Date: Fri Nov 19 2021 - 03:38:15 EST


On Thu, Nov 04, 2021 at 06:26:21AM +0000, cgel.zte@xxxxxxxxx wrote:
> From: luo penghao <luo.penghao@xxxxxxxxxx>
>
> The statement in the switch is repeated with the statement at the
> beginning of the while loop, so this statement is meaningless.
>
> The clang_analyzer complains as follows:
>
> net/xfrm/xfrm_policy.c:3392:2 warning:
>
> Value stored to 'exthdr' is never read
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: luo penghao <luo.penghao@xxxxxxxxxx>

Applied to ipsec-next, thanks luo!