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 <>
Acked-by: default avatarJason Wang <>
Signed-off-by: default avatarDavid S. Miller <>
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)
head = &tun->flows[tun_hashfn(rxhash)];
head = &tun->flows[tun_hashfn(rxhash)];
Supports Markdown
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