xfrm: policy: xfrm_get_tos cannot fail
authorFlorian Westphal <fw@strlen.de>
Tue, 7 Feb 2017 14:00:14 +0000 (15:00 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 9 Feb 2017 09:22:17 +0000 (10:22 +0100)
commitf5e2bb4f5b2252e8f170f59bece2cf9a2efc8e6a
tree8f38251d0744921d35df45fcb7123cc3ba618b00
parent960fdfdeb9e85a67bed136bc945c541ba61c2bdd
xfrm: policy: xfrm_get_tos cannot fail

The comment makes it look like get_tos() is used to validate something,
but it turns out the comment was about xfrm_find_bundle() which got removed
years ago.

xfrm_get_tos will return either the tos (ipv4) or 0 (ipv6).

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c