Commit 22d387e1 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller

net: nfc: hci: llc_shdlc: use setup_timer() helper.

Use setup_timer function instead of initializing timer with the
   function and data fields.
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b1e07c54
...@@ -763,17 +763,14 @@ static void *llc_shdlc_init(struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv, ...@@ -763,17 +763,14 @@ static void *llc_shdlc_init(struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv,
mutex_init(&shdlc->state_mutex); mutex_init(&shdlc->state_mutex);
shdlc->state = SHDLC_DISCONNECTED; shdlc->state = SHDLC_DISCONNECTED;
init_timer(&shdlc->connect_timer); setup_timer(&shdlc->connect_timer, llc_shdlc_connect_timeout,
shdlc->connect_timer.data = (unsigned long)shdlc; (unsigned long)shdlc);
shdlc->connect_timer.function = llc_shdlc_connect_timeout;
init_timer(&shdlc->t1_timer); setup_timer(&shdlc->t1_timer, llc_shdlc_t1_timeout,
shdlc->t1_timer.data = (unsigned long)shdlc; (unsigned long)shdlc);
shdlc->t1_timer.function = llc_shdlc_t1_timeout;
init_timer(&shdlc->t2_timer); setup_timer(&shdlc->t2_timer, llc_shdlc_t2_timeout,
shdlc->t2_timer.data = (unsigned long)shdlc; (unsigned long)shdlc);
shdlc->t2_timer.function = llc_shdlc_t2_timeout;
shdlc->w = SHDLC_MAX_WINDOW; shdlc->w = SHDLC_MAX_WINDOW;
shdlc->srej_support = SHDLC_SREJ_SUPPORT; shdlc->srej_support = SHDLC_SREJ_SUPPORT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment