xfrm: delete duplicated functions that calls same xfrm_api_check()
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 1 Feb 2022 07:35:28 +0000 (09:35 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 2 Feb 2022 06:50:01 +0000 (07:50 +0100)
commit2ecda181682e9ed66dfbd5f8445c5d5a35b984d3
tree6294a367dd5e66000ab7b7628ae16ffaa4461dec
parent000fe940e51f03210bd5fb1061d4d82ed9a7b1b6
xfrm: delete duplicated functions that calls same xfrm_api_check()

The xfrm_dev_register() and xfrm_dev_feat_change() have same
implementation of one call to xfrm_api_check(). Instead of doing such
indirection, call to xfrm_api_check() directly and delete duplicated
functions.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_device.c