lkml.org 
[lkml]   [2017]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] atm: nicstar: use the setup_timer helper
    Date
    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
    \
     
     \ /
      Last update: 2017-11-24 10:00    [W:3.506 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site