Commit 5c327f67 authored by Li RongQing's avatar Li RongQing Committed by David S. Miller

tun: remove unnecessary check in tun_flow_update

caller has guaranted that rxhash is not zero
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83b1bc12
......@@ -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();
......
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