]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp6-client: drop unnecessary event_source_disable()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 6 Feb 2022 17:48:03 +0000 (02:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Feb 2022 05:51:19 +0000 (14:51 +0900)
commit0f3b8b809ce83c09eb6c3915c98df4afa2146cfa
tree5ece2968d1a2df1b928ee16e8b30366412e006e4
parent3bb18e707c5209d7f051fa22682c10136d22a33e
sd-dhcp6-client: drop unnecessary event_source_disable()

The event source will be soon re-enabled in the same function.

The function client_timeout_resend() may return earlier without
re-enabling the timer souce. However,
- the timer event source is one shot by default. Hence, it is not
  necessary to disable in the callback function,
- when it returns early, then client_set_state() or client_stop() is
  called before return, and they re-ernable or disable the timer.
src/libsystemd-network/sd-dhcp6-client.c