net: xfrm: Fix end of loop tests for list_for_each_entry
authorHarshvardhan Jha <harshvardhan.jha@oracle.com>
Sun, 25 Jul 2021 17:53:55 +0000 (23:23 +0530)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:35:35 +0000 (08:35 -0400)
commit505884a0c7a1c44e66690b975601220eace0868c
treeb50f599f024d32bcb91e435d9f70b70c6a1d984c
parentf1c0533fae5956d49f232255799b725c4b810abd
net: xfrm: Fix end of loop tests for list_for_each_entry

[ Upstream commit 480e93e12aa04d857f7cc2e6fcec181c0d690404 ]

The list_for_each_entry() iterator, "pos" in this code, can never be
NULL so the warning will never be printed.

Signed-off-by: Harshvardhan Jha <harshvardhan.jha@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/xfrm/xfrm_ipcomp.c