Commit bc46427e authored by Lukáš Korenčik's avatar Lukáš Korenčik Committed by Martin K. Petersen

scsi: zfcp: use setup_timer instead of init_timer

Use initialization with setup_timer function instead of using
init_timer function and data fields. It improves readability.
Signed-off-by: default avatarLukáš Korenčik <xkorenc1@fi.muni.cz>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarBenjamin Block <bblock@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7d91869c
...@@ -572,9 +572,8 @@ static void zfcp_erp_memwait_handler(unsigned long data) ...@@ -572,9 +572,8 @@ static void zfcp_erp_memwait_handler(unsigned long data)
static void zfcp_erp_strategy_memwait(struct zfcp_erp_action *erp_action) static void zfcp_erp_strategy_memwait(struct zfcp_erp_action *erp_action)
{ {
init_timer(&erp_action->timer); setup_timer(&erp_action->timer, zfcp_erp_memwait_handler,
erp_action->timer.function = zfcp_erp_memwait_handler; (unsigned long) erp_action);
erp_action->timer.data = (unsigned long) erp_action;
erp_action->timer.expires = jiffies + HZ; erp_action->timer.expires = jiffies + HZ;
add_timer(&erp_action->timer); add_timer(&erp_action->timer);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment