Skip to content

Commit 326534e

Browse files
zx2c4davem330
authored andcommitted
wireguard: timers: move to using timer_delete_sync
The documentation says that del_timer_sync is obsolete, and code should use the equivalent timer_delete_sync instead, so switch to it. Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f58d0a9 commit 326534e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/net/wireguard/timers.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ void wg_timers_init(struct wg_peer *peer)
234234

235235
void wg_timers_stop(struct wg_peer *peer)
236236
{
237-
del_timer_sync(&peer->timer_retransmit_handshake);
238-
del_timer_sync(&peer->timer_send_keepalive);
239-
del_timer_sync(&peer->timer_new_handshake);
240-
del_timer_sync(&peer->timer_zero_key_material);
241-
del_timer_sync(&peer->timer_persistent_keepalive);
237+
timer_delete_sync(&peer->timer_retransmit_handshake);
238+
timer_delete_sync(&peer->timer_send_keepalive);
239+
timer_delete_sync(&peer->timer_new_handshake);
240+
timer_delete_sync(&peer->timer_zero_key_material);
241+
timer_delete_sync(&peer->timer_persistent_keepalive);
242242
flush_work(&peer->clear_peer_work);
243243
}

0 commit comments

Comments
 (0)