]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/dhcp4: drop unnecessary assignment
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 24 Jul 2023 11:12:54 +0000 (20:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 27 Jul 2023 20:15:11 +0000 (05:15 +0900)
It will be set in dhcp4_request_route_auto().

src/network/networkd-dhcp4.c

index 3388a9dfb5902415dbc130120fcf6eda0016fd45..3df447776fa7a5cde4c9186ee9d809d9c54c57b6 100644 (file)
@@ -449,8 +449,6 @@ static int dhcp4_request_static_routes(Link *link, struct in_addr *ret_default_g
                 if (r < 0)
                         return r;
 
-                route->gw_family = AF_INET;
-
                 r = sd_dhcp_route_get_gateway(*e, &gw);
                 if (r < 0)
                         return r;