From: Julian Wiedmann <jwi@linux.vnet.ibm.com>
To: Colin King <colin.king@canonical.com>,
Ursula Braun <ubraun@linux.vnet.ibm.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
linux-s390@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] s390/drivers: use setup_timer instead of init_timer
Date: Mon, 27 Nov 2017 08:25:51 +0100 [thread overview]
Message-ID: <53a7d0e2-93f6-e69e-ef49-57d3a46714c5@linux.vnet.ibm.com> (raw)
In-Reply-To: <20171124125007.30704-1-colin.king@canonical.com>
On 11/24/2017 01:50 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Use setup_timer function instead of initializing timer with the
> function and data fields.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> drivers/s390/net/fsm.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/s390/net/fsm.c b/drivers/s390/net/fsm.c
> index 8c14c6c3ad3d..16b81be1f07a 100644
> --- a/drivers/s390/net/fsm.c
> +++ b/drivers/s390/net/fsm.c
> @@ -142,13 +142,11 @@ void
> fsm_settimer(fsm_instance *fi, fsm_timer *this)
> {
> this->fi = fi;
> - this->tl.function = (void *)fsm_expire_timer;
> - this->tl.data = (long)this;
> #if FSM_TIMER_DEBUG
> printk(KERN_DEBUG "fsm(%s): Create timer %p\n", fi->name,
> this);
> #endif
> - init_timer(&this->tl);
> + setup_timer(&this->tl, (void *)fsm_expire_timer, (long)this);
> }
>
> void
>
Thanks Colin, but looks like Kees beat you to it in Linus' tree.
prev parent reply other threads:[~2017-11-27 7:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-24 12:50 Colin King
2017-11-27 7:25 ` Julian Wiedmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53a7d0e2-93f6-e69e-ef49-57d3a46714c5@linux.vnet.ibm.com \
--to=jwi@linux.vnet.ibm.com \
--cc=colin.king@canonical.com \
--cc=heiko.carstens@de.ibm.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=schwidefsky@de.ibm.com \
--cc=ubraun@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®