[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1538877375-17220-1-git-send-email-lirongqing@baidu.com>
Date: Sun, 7 Oct 2018 09:56:15 +0800
From: Li RongQing <lirongqing@...du.com>
To: netdev@...r.kernel.org, steffen.klassert@...unet.com
Subject: [PATCH][ipsec-next] 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@...du.com>
---
net/xfrm/xfrm_interface.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/xfrm/xfrm_interface.c b/net/xfrm/xfrm_interface.c
index dc5b20bf29cf..abafd49cc65d 100644
--- a/net/xfrm/xfrm_interface.c
+++ b/net/xfrm/xfrm_interface.c
@@ -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;
--
2.16.2
Powered by blists - more mailing lists