Skip to content

Commit 5c327f6

Browse files
lrq-maxdavem330
authored andcommitted
tun: remove unnecessary check in tun_flow_update
caller has guaranted that rxhash is not zero Signed-off-by: Li RongQing <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 83b1bc1 commit 5c327f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/net/tun.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,7 @@ static void tun_flow_update(struct tun_struct *tun, u32 rxhash,
529529
unsigned long delay = tun->ageing_time;
530530
u16 queue_index = tfile->queue_index;
531531

532-
if (!rxhash)
533-
return;
534-
else
535-
head = &tun->flows[tun_hashfn(rxhash)];
532+
head = &tun->flows[tun_hashfn(rxhash)];
536533

537534
rcu_read_lock();
538535

0 commit comments

Comments
 (0)