[PATCH] atm: nicstar: use the setup_timer helper

From: Colin King
Date: Fri Nov 24 2017 - 03:59:32 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Replace init_timer and two explicit assignments with the setup_timer
helper.

Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
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