From: Allen Pais Date: Fri, 22 Sep 2017 08:59:39 +0000 (+0530) Subject: drivers: usb: atm: cxacru: use setup_timer() helper. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6a29d4b944316f7e4ad643b78141b60fdf41c5ca;p=linux.git drivers: usb: atm: cxacru: use setup_timer() helper. Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index 5160a4a966b37..600a670b4febb 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c @@ -570,10 +570,8 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done, { struct timer_list timer; - init_timer(&timer); + setup_timer(&timer, cxacru_timeout_kill, (unsigned long)urb); timer.expires = jiffies + msecs_to_jiffies(CMD_TIMEOUT); - timer.data = (unsigned long) urb; - timer.function = cxacru_timeout_kill; add_timer(&timer); wait_for_completion(done); del_timer_sync(&timer);