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

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


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

--- linux-2.5.68/drivers/net/wan/sdla_x25.c 2003-03-25 10:07:27.000000000 +0530
+++ linux-2.5.68-nvk/drivers/net/wan/sdla_x25.c 2003-05-03 16:02:35.000000000 +0530
@@ -1224,9 +1224,7 @@
                         connect(card);
                         S508_S514_unlock(card, &smp_flags);
 
- del_timer(&card->u.x.x25_timer);
- card->u.x.x25_timer.expires=jiffies+HZ;
- add_timer(&card->u.x.x25_timer);
+ mod_timer(&card->u.x.x25_timer, jiffies + HZ);
                 }
         }
         /* Device is not up until the we are in connected state */

-
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