Messages in this thread Patch in this message | | | From | Colin King <> | Subject | [PATCH] atm: nicstar: use the setup_timer helper | Date | Fri, 24 Nov 2017 08:59:25 +0000 |
| |
From: Colin Ian King <colin.king@canonical.com>
Replace init_timer and two explicit assignments with the setup_timer helper.
Signed-off-by: Colin Ian King <colin.king@canonical.com> --- drivers/atm/nicstar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c index a9702836cbae..335447ed0ba4 100644 --- a/drivers/atm/nicstar.c +++ b/drivers/atm/nicstar.c @@ -284,10 +284,8 @@ static int __init nicstar_init(void) XPRINTK("nicstar: nicstar_init() returned.\n"); if (!error) { - init_timer(&ns_timer); + setup_timer(&ns_timer, ns_poll, 0UL); ns_timer.expires = jiffies + NS_POLL_PERIOD; - ns_timer.data = 0UL; - ns_timer.function = ns_poll; add_timer(&ns_timer); } -- 2.14.1
| |