From 5e822519130f2692c3704e1c5c0eccd5baa98203 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 1 Nov 2021 09:51:49 +0900 Subject: [PATCH] sd-dhcp6-client: always set suitable ARP type Also, drops unnecessary comparisons. --- src/libsystemd-network/sd-dhcp6-client.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index 9a6be64789..ab336f5a7c 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -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;