[PATCH 2.{4,5}.x] mod_timer conversions for mptctl.c

From: Vinay K Nallamothu (vinay-rc@naturesoft.net)
Date: Sat May 03 2003 - 08:50:24 EST


Hi,

Trivial {del,add}_timer to mod_timer conversions.

vinay

--- linux-2.5.68/drivers/message/fusion/mptctl.c 2003-03-25 10:07:57.000000000 +0530
+++ linux-2.5.68-nvk/drivers/message/fusion/mptctl.c 2003-05-03 15:50:42.000000000 +0530
@@ -269,11 +269,8 @@
                          */
                         iocStatus = reply->u.reply.IOCStatus & MPI_IOCSTATUS_MASK;
                         if (iocStatus == MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED) {
- if (ioc->ioctl->status & MPT_IOCTL_STATUS_TIMER_ACTIVE) {
- del_timer (&ioc->ioctl->timer);
- ioc->ioctl->timer.expires = jiffies + HZ;
- add_timer(&ioc->ioctl->timer);
- }
+ if (ioc->ioctl->status & MPT_IOCTL_STATUS_TIMER_ACTIVE)
+ mod_timer(&ioc->ioctl->timer, jiffies + HZ);
                         }
                         ioc->ioctl->tmPtr = NULL;
 

-
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