diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 22:34:59 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 11:44:42 -0700 |
commit | b9496b6b9100d824033390312dd64244f959a156 (patch) | |
tree | 401d83813c06d96c0207d60c97d78fd3cfd64a47 | |
parent | fe9bfe207e200f901361681bf1497386068f1df2 (diff) | |
download | linux-b9496b6b9100d824033390312dd64244f959a156.tar.bz2 |
drivers: net: ath6kl: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/txrx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c index e6b2517e6334..4e5cc2b7045a 100644 --- a/drivers/net/wireless/ath/ath6kl/txrx.c +++ b/drivers/net/wireless/ath/ath6kl/txrx.c @@ -1753,9 +1753,7 @@ void aggr_conn_init(struct ath6kl_vif *vif, struct aggr_info *aggr_info, aggr_conn->aggr_sz = AGGR_SZ_DEFAULT; aggr_conn->dev = vif->ndev; - init_timer(&aggr_conn->timer); - aggr_conn->timer.function = aggr_timeout; - aggr_conn->timer.data = (unsigned long) aggr_conn; + setup_timer(&aggr_conn->timer, aggr_timeout, (unsigned long)aggr_conn); aggr_conn->aggr_info = aggr_info; aggr_conn->timer_scheduled = false; |