]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58bd936b5dc2a62d8ea62ac6d751ecd3940ec7c9
tree8f38251d0744921d35df45fcb7123cc3ba618b00
parent71a5605f4a3dea7415f2b139c4a04188e2268d9e
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