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)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 26 Jul 2021 10:26:28 +0000 (12:26 +0200)
commit480e93e12aa04d857f7cc2e6fcec181c0d690404
treefd7f99238e3bd6fca301267fb50e57441e51bcd0
parent7cb745800df9d352db83f163778fdfc301457625
net: xfrm: Fix end of loop tests for list_for_each_entry

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>
net/xfrm/xfrm_ipcomp.c