network: shorten code a bit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Mar 2022 16:04:26 +0000 (01:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 31 Mar 2022 00:29:42 +0000 (09:29 +0900)
commitda94a69b8d1044c127271d13ac0087ce388749dc
tree5d16a58f5666e046d077e6df231285b6827f2c19
parentb732606950f8726c0280080c7d055a714c2888f5
network: shorten code a bit

Currently, there exist only two MTU sources, static and DHCPv4, and they
are exclusive. Hence, it is not necessary to check the existence of the
MTU option in the acquired DHCP lease. Let's unconditionally reset the
MTU. Note that, if the current and original MTU are equivalent, then
link_request_to_set_mtu() handles that gracefully.
src/network/networkd-dhcp4.c