mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
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;
|
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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user