[PATCH 2.{4,5}.x] mod_timer fix for sdla_ppp.c

From: Vinay K Nallamothu (vinay-rc@naturesoft.net)
Date: Sat May 03 2003 - 09:43:29 EST


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

--- linux-2.5.68/drivers/net/wan/sdla_ppp.c 2003-03-25 10:07:27.000000000 +0530
+++ linux-2.5.68-nvk/drivers/net/wan/sdla_ppp.c 2003-05-03 16:02:05.000000000 +0530
@@ -758,9 +758,7 @@
         /* Start the PPP configuration after 1sec delay.
          * This will give the interface initilization time
          * to finish its configuration */
- del_timer(&ppp_priv_area->poll_delay_timer);
- ppp_priv_area->poll_delay_timer.expires = jiffies+HZ;
- add_timer(&ppp_priv_area->poll_delay_timer);
+ mod_timer(&ppp_priv_area->poll_delay_timer, jiffies + HZ);
         return 0;
 }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:18 EST