sd-dhcp6-client: always set suitable ARP type

Also, drops unnecessary comparisons.
This commit is contained in:
Yu Watanabe
2021-11-01 09:51:52 +09:00
parent 2ad2925de5
commit 5e82251913
-4
View File
@@ -251,10 +251,6 @@ int sd_dhcp6_client_set_mac(
return 0;
}
if (client->mac_addr_len == addr_len &&
memcmp(&client->mac_addr, addr, addr_len) == 0)
return 0;
memcpy(&client->mac_addr, addr, addr_len);
client->mac_addr_len = addr_len;
client->arp_type = arp_type;