2003-05-03 14:34:15

by Vinay K Nallamothu

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

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 */