xfrm: remove unnecessary check in xfrmi_get_stats64
authorLi RongQing <lirongqing@baidu.com>
Sun, 7 Oct 2018 01:56:15 +0000 (09:56 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 8 Oct 2018 06:15:55 +0000 (08:15 +0200)
commitb7138fddd6893a455cc82249f3d12ae651023543
tree3ef1ba16cd2e3acccf65c411b05a8b378d74cc5b
parentabf1a08ff3237a27188ff8cc2904f2cea893af55
xfrm: remove unnecessary check in xfrmi_get_stats64

if tstats of a device is not allocated, this device is not
registered correctly and can not be used.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_interface.c