projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83b1bc1
)
tun: remove unnecessary check in tun_flow_update
author
Li RongQing
<lirongqing@baidu.com>
Thu, 6 Dec 2018 08:28:11 +0000
(16:28 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 6 Dec 2018 20:15:53 +0000
(12:15 -0800)
caller has guaranted that rxhash is not zero
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c
patch
|
blob
|
history
diff --git
a/drivers/net/tun.c
b/drivers/net/tun.c
index d0745dc819769c1641341aeaf0cc70ad500345ac..6760b86547df18b92bbf54575eadb85232bc963f 100644
(file)
--- a/
drivers/net/tun.c
+++ b/
drivers/net/tun.c
@@
-529,10
+529,7
@@
static void tun_flow_update(struct tun_struct *tun, u32 rxhash,
unsigned long delay = tun->ageing_time;
u16 queue_index = tfile->queue_index;
- if (!rxhash)
- return;
- else
- head = &tun->flows[tun_hashfn(rxhash)];
+ head = &tun->flows[tun_hashfn(rxhash)];
rcu_read_lock();