Commit b7138fdd authored by Li RongQing's avatar Li RongQing Committed by Steffen Klassert

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: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent abf1a08f
......@@ -561,9 +561,6 @@ static void xfrmi_get_stats64(struct net_device *dev,
{
int cpu;
if (!dev->tstats)
return;
for_each_possible_cpu(cpu) {
struct pcpu_sw_netstats *stats;
struct pcpu_sw_netstats tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment