network/dhcp4: drop unnecessary assignment

It will be set in dhcp4_request_route_auto().
This commit is contained in:
Yu Watanabe
2023-07-28 05:15:11 +09:00
parent 1953bcd14a
commit 5e6dad11b7
-2
View 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;