public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vinay K Nallamothu <vinay-rc@naturesoft.net>
To: dm@sangoma.com
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.5.68] trivial mod_timer fixes for af_wanpipe.c
Date: 03 May 2003 20:04:12 +0530	[thread overview]
Message-ID: <1051972452.2018.148.camel@lima.royalchallenge.com> (raw)

af_wanpipe.c: trivial {del,add}_timer to mod_timer conversion.

--- linux-2.5.68/net/wanrouter/af_wanpipe.c	2003-04-15 18:16:12.000000000 +0530
+++ linux-2.5.68-nvk/net/wanrouter/af_wanpipe.c	2003-05-03 17:29:36.000000000 +0530
@@ -634,11 +634,8 @@
 	skb_queue_tail(&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);
 




                 reply	other threads:[~2003-05-03 14:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1051972452.2018.148.camel@lima.royalchallenge.com \
    --to=vinay-rc@naturesoft.net \
    --cc=dm@sangoma.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox