From: Lukáš Korenčik <[email protected]>
Use inicialization with setup_timer function instead of using
init_timer function and data fields. It improves readability.
Signed-off-by: Lukáš Korenčik <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
Cc: Steffen Maier <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: <[email protected]>
---
drivers/s390/scsi/zfcp_erp.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c
index 7ccfce559034..14c0cbe335b3 100644
--- a/drivers/s390/scsi/zfcp_erp.c
+++ b/drivers/s390/scsi/zfcp_erp.c
@@ -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)
{
- init_timer(&erp_action->timer);
- erp_action->timer.function = zfcp_erp_memwait_handler;
- erp_action->timer.data = (unsigned long) erp_action;
+ setup_timer(&erp_action->timer, zfcp_erp_memwait_handler,
+ (unsigned long) erp_action);
erp_action->timer.expires = jiffies + HZ;
add_timer(&erp_action->timer);
}
--
2.12.0
Thanks, Lukáš, Jiri, queued for next zfcp feature submission to
linux-scsi as:
"zfcp: use setup_timer instead of init_timer"
On 03/03/2017 01:46 PM, Jiri Slaby wrote:
> From: Lukáš Korenčik <[email protected]>
>
> Use inicialization with setup_timer function instead of using
> init_timer function and data fields. It improves readability.
>
> Signed-off-by: Lukáš Korenčik <[email protected]>
> Signed-off-by: Jiri Slaby <[email protected]>
> Cc: Steffen Maier <[email protected]>
> Cc: Martin Schwidefsky <[email protected]>
> Cc: Heiko Carstens <[email protected]>
> Cc: <[email protected]>
> ---
> drivers/s390/scsi/zfcp_erp.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c
> index 7ccfce559034..14c0cbe335b3 100644
> --- a/drivers/s390/scsi/zfcp_erp.c
> +++ b/drivers/s390/scsi/zfcp_erp.c
> @@ -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)
> {
> - init_timer(&erp_action->timer);
> - erp_action->timer.function = zfcp_erp_memwait_handler;
> - erp_action->timer.data = (unsigned long) erp_action;
> + setup_timer(&erp_action->timer, zfcp_erp_memwait_handler,
> + (unsigned long) erp_action);
> erp_action->timer.expires = jiffies + HZ;
> add_timer(&erp_action->timer);
> }
>
--
Mit freundlichen Grüßen / Kind regards
Steffen Maier
Linux on z Systems Development
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
On 03/07/2017, 02:06 PM, Steffen Maier wrote:
> Thanks, Lukáš, Jiri, queued for next zfcp feature submission to
> linux-scsi as:
>
> "zfcp: use setup_timer instead of init_timer"
Hi,
was this actually submitted somewhere or did it fall through the cracks?
thanks,
--
js
suse labs
Hi Jiri,
On 06/26/2017 02:06 PM, Jiri Slaby wrote:
> On 03/07/2017, 02:06 PM, Steffen Maier wrote:
>> Thanks, Lukáš, Jiri, queued for next zfcp feature submission to
>> linux-scsi as:
>>
>> "zfcp: use setup_timer instead of init_timer"
>
> Hi,
>
> was this actually submitted somewhere or did it fall through the cracks?
still queued, to be submitted soon
--
Mit freundlichen Grüßen / Kind regards
Steffen Maier
Linux on z Systems Development
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294