Messages in this thread Patch in this message | | | Subject | [PATCH 2.{4,5}.x] mod_timer fix for synclink.c | From | Vinay K Nallamothu <> | Date | 03 May 2003 20:27:51 +0530 |
| |
synclink.c: trivial {del,add}_timer to mod_timer conversion.
--- linux-2.5.68/drivers/char/synclink.c 2003-03-25 10:07:40.000000000 +0530 +++ linux-2.5.68-nvk/drivers/char/synclink.c 2003-05-03 15:43:24.000000000 +0530 @@ -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; }
- 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/
| |