提交 5c327f67 编写于 作者: L Li RongQing 提交者: David S. Miller

tun: remove unnecessary check in tun_flow_update

caller has guaranted that rxhash is not zero
Signed-off-by: NLi RongQing <lirongqing@baidu.com>
Acked-by: NJason Wang <jasowang@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 83b1bc12
...@@ -529,10 +529,7 @@ static void tun_flow_update(struct tun_struct *tun, u32 rxhash, ...@@ -529,10 +529,7 @@ static void tun_flow_update(struct tun_struct *tun, u32 rxhash,
unsigned long delay = tun->ageing_time; unsigned long delay = tun->ageing_time;
u16 queue_index = tfile->queue_index; u16 queue_index = tfile->queue_index;
if (!rxhash) head = &tun->flows[tun_hashfn(rxhash)];
return;
else
head = &tun->flows[tun_hashfn(rxhash)];
rcu_read_lock(); rcu_read_lock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册