[WGID-199988] Remove unreachable code
[platform/core/api/connection.git] / src / connection_profile.c
index a44c912..4b4dfbf 100755 (executable)
@@ -681,8 +681,6 @@ EXPORT_API int connection_profile_get_dns_address(connection_profile_h profile,
        else if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6) //LCOV_EXCL_LINE
                *dns_address = __profile_convert_ip_to_string(&net_info->DnsAddr6[order-1], //LCOV_EXCL_LINE
                                address_family);
-       else
-               CONNECTION_LOG(CONNECTION_ERROR, "Invalid address family\n"); //LCOV_EXCL_LINE
 
        if (*dns_address == NULL)
                return CONNECTION_ERROR_OUT_OF_MEMORY;