net: sctp: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Vlad Yasevich <vyasevich@gmail.com> Cc: Neil Horman <nhorman@tuxdriver.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: linux-sctp@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a4cdd9ff1f
commit
9c3b575183
@@ -149,8 +149,7 @@ static struct sctp_association *sctp_association_init(
|
||||
|
||||
/* Initializes the timers */
|
||||
for (i = SCTP_EVENT_TIMEOUT_NONE; i < SCTP_NUM_TIMEOUT_TYPES; ++i)
|
||||
setup_timer(&asoc->timers[i], sctp_timer_events[i],
|
||||
(unsigned long)asoc);
|
||||
timer_setup(&asoc->timers[i], sctp_timer_events[i], 0);
|
||||
|
||||
/* Pull default initialization values from the sock options.
|
||||
* Note: This assumes that the values have already been
|
||||
|
Reference in New Issue
Block a user