Commit cf6243df authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Use mod_timer in net_wanrouter_af_wanpipe.c

From:  Vinay K Nallamothu <vinay-rc@naturesoft.net>
parent 14baa942
......@@ -634,11 +634,8 @@ static int wanpipe_sendmsg(struct kiocb *iocb, struct socket *sock,
skb_queue_tail(&sk->sk_write_queue,skb);
atomic_inc(&wp->packet_sent);
if (!(test_and_set_bit(0, &wp->timer))){
del_timer(&wp->tx_timer);
wp->tx_timer.expires = jiffies + 1;
add_timer(&wp->tx_timer);
}
if (!(test_and_set_bit(0, &wp->timer)))
mod_timer(&wp->tx_timer, jiffies + 1);
return(len);
......
Markdown is supported
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