Skip to contentSkip to conversation

mod_timer fix for synclink.c

PATCH New Vinay K Nallamothu 1 participant 1 message May 3, 2003 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mod_timer fix for synclink.c

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

drivers/char/synclink.c +1 -3
@@ -4278,9 +4278,7 @@
 				info->get_tx_holding_index=0;
 
 			/* restart transmit timer */
-			del_timer(&info->tx_timer);
-			info->tx_timer.expires = jiffies + jiffies_from_ms(5000);
-			add_timer(&info->tx_timer);
+			mod_timer(&info->tx_timer, jiffies + jiffies_from_ms(5000));
 
 			ret = 1;
 		}