network: drop an unused variable

This commit is contained in:
Frantisek Sumsal
2022-08-20 21:00:14 +02:00
parent f7c1808e69
commit f8769631e1
+1 -3
View File
@@ -320,7 +320,7 @@ static int dhcp4_server_set_dns_from_resolve_conf(Link *link) {
_cleanup_free_ struct in_addr *addresses = NULL;
_cleanup_fclose_ FILE *f = NULL;
size_t n_addresses = 0;
int n = 0, r;
int r;
f = fopen(PRIVATE_UPLINK_RESOLV_CONF, "re");
if (!f) {
@@ -341,8 +341,6 @@ static int dhcp4_server_set_dns_from_resolve_conf(Link *link) {
if (r == 0)
break;
n++;
l = strstrip(line);
if (IN_SET(*l, '#', ';', 0))
continue;