xfrm: Remove duplicate assignment
authorluo penghao <luo.penghao@zte.com.cn>
Thu, 4 Nov 2021 06:26:21 +0000 (06:26 +0000)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 18 Nov 2021 18:15:05 +0000 (19:15 +0100)
commit2e1809208a4a52e883527c288b4fca61a90100b2
treeb4798a876bac4c6fe975d3d02e5fd7a8442e04f5
parentc6e7871894a3b975ae45995d69cf761566904595
xfrm: Remove duplicate assignment

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@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c