From: Yu Watanabe Date: Mon, 24 Jul 2023 11:12:54 +0000 (+0900) Subject: network/dhcp4: drop unnecessary assignment X-Git-Tag: v255-rc1~900^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e6dad11b7462318cd8ac9626e53ef314c9c8f04;p=thirdparty%2Fsystemd.git network/dhcp4: drop unnecessary assignment It will be set in dhcp4_request_route_auto(). --- diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c index 3388a9dfb59..3df447776fa 100644 --- a/src/network/networkd-dhcp4.c +++ b/src/network/networkd-dhcp4.c @@ -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;