Skip to contentSkip to conversation

mod_timer conversions for mptctl.c

PATCH New Vinay K Nallamothu 1 participant 1 message May 3, 2003 LSI Logic MPT fusion drivers (FC/SAS/SPI)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mod_timer conversions for mptctl.c

Hi,

Trivial {del,add}_timer to mod_timer conversions.

vinay

drivers/message/fusion/mptctl.c +2 -5
@@ -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;