mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
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>
This commit is contained in:
parent
fe9bfe207e
commit
b9496b6b91
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user