mac80211: Use setup_timer instead of init_timer
authorOndřej Lysoněk <ondrej.lysonek@seznam.cz>
Fri, 3 Mar 2017 12:45:35 +0000 (13:45 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Mar 2017 12:23:05 +0000 (13:23 +0100)
commitf8f118ceaa562d5b49252ecbfd7fe1f704f4e076
tree67cba516ff1779fa45d1713d4c469a2a55941208
parent85bbd80373a7cc9d06d3ef103b1a93d934a8da43
mac80211: Use setup_timer instead of init_timer

Use setup_timer() and setup_deferrable_timer() to set the data and
function timer fields. It makes the code cleaner and will allow for
easier change of the timer struct internals.

Signed-off-by: Ondřej Lysoněk <ondrej.lysonek@seznam.cz>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: <linux-wireless@vger.kernel.org>
Cc: <netdev@vger.kernel.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-rx.c
net/mac80211/agg-tx.c