Ifdef out a redundant if statement when INET6 is disabled.

MFC after:	1 week
This commit is contained in:
Cy Schubert 2017-05-05 14:34:09 +00:00
parent f6b74a7d16
commit 5207c6ac74

View File

@ -1047,7 +1047,9 @@ setnodeaddr(int type, int role, void *ptr, char *arg)
if (type == IPLT_POOL) {
ip_pool_node_t *node = ptr;
#ifdef USE_INET6
if (node->ipn_addr.adf_family == AF_INET)
#endif
node->ipn_addr.adf_len = offsetof(addrfamily_t,
adf_addr) +
sizeof(struct in_addr);