Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -529,9 +529,6 @@ 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)];

	rcu_read_lock();