Skip to contentSkip to conversation

mod_timer fix for sdla_fr.c

PATCH New Vinay K Nallamothu 1 participant 1 message May 3, 2003 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mod_timer fix for sdla_fr.c

sdla_fr.c: trivial {del,add}_timer to mod_timer conversions.

drivers/net/wan/sdla_fr.c +1 -3
@@ -4156,9 +4156,7 @@
 {
 	fr_channel_t* chan = dev->priv;
 
-	del_timer(&chan->fr_arp_timer);
-	chan->fr_arp_timer.expires = jiffies + (chan->inarp_interval * HZ);
-	add_timer(&chan->fr_arp_timer);
+	mod_timer(&chan->fr_arp_timer, jiffies + (chan->inarp_interval) * HZ);
 	return;
 }