projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abf1a08
)
xfrm: remove unnecessary check in xfrmi_get_stats64
author
Li RongQing
<lirongqing@baidu.com>
Sun, 7 Oct 2018 01:56:15 +0000
(09:56 +0800)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Mon, 8 Oct 2018 06:15:55 +0000
(08:15 +0200)
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
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_interface.c
b/net/xfrm/xfrm_interface.c
index
dc5b20b
..
abafd49
100644
(file)
--- 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;