Skip to content

Commit

Permalink
drivers: net: hamradio: use setup_timer() helper.
Browse files Browse the repository at this point in the history
Use setup_timer function instead of initializing timer with the
    function and data fields.

Signed-off-by: Allen Pais <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Allen Pais authored and davem330 committed Sep 21, 2017
1 parent 8d81fe7 commit 7e47fc2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/hamradio/6pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,7 @@ static int sixpack_open(struct tty_struct *tty)

netif_start_queue(dev);

init_timer(&sp->tx_t);
sp->tx_t.function = sp_xmit_on_air;
sp->tx_t.data = (unsigned long) sp;
setup_timer(&sp->tx_t, sp_xmit_on_air, (unsigned long)sp);

init_timer(&sp->resync_t);

Expand Down

0 comments on commit 7e47fc2

Please sign in to comment.