forked from luck/tmp_suning_uos_patched
tun: remove unnecessary check in tun_flow_update
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>
This commit is contained in:
parent
83b1bc122c
commit
5c327f673d
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user