ovpn: drop useless reg_state check in keepalive worker
authorAntonio Quartulli <antonio@openvpn.net>
Wed, 30 Apr 2025 00:35:18 +0000 (02:35 +0200)
committerAntonio Quartulli <antonio@openvpn.net>
Thu, 15 May 2025 11:09:36 +0000 (13:09 +0200)
commitadcdaac57d3ccb38f2f1b0a8da31b5c1403385f0
tree25cc36e7f32cc80b9cb6241ec365acd454bb0837
parent944f8b6abab6a456254cf9617131144adac1a506
ovpn: drop useless reg_state check in keepalive worker

The keepalive worker is cancelled before calling
unregister_netdevice_queue(), therefore it will never
hit a situation where the reg_state can be different
than NETDEV_REGISTERED.

For this reason, checking reg_state is useless and the
condition can be removed.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
drivers/net/ovpn/peer.c