From d05de762bcdf2dd798f9b55f7861feabade64e49 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 29 Mar 2020 03:41:59 +0800 Subject: [PATCH] libc/netdb: Don't need call dns_initialize in dns_find_answer so let remove it Change-Id: I6b09673caf8cb16d90cbda8b791f1ef0ba59e2a2 Signed-off-by: Xiang Xiao --- libs/libc/netdb/lib_dnscache.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/libc/netdb/lib_dnscache.c b/libs/libc/netdb/lib_dnscache.c index 0f4963e7ef..7ba1ef290b 100644 --- a/libs/libc/netdb/lib_dnscache.c +++ b/libs/libc/netdb/lib_dnscache.c @@ -213,14 +213,6 @@ int dns_find_answer(FAR const char *hostname, FAR union dns_addr_u *addr, int next; int ndx; - /* If DNS not initialized, no need to proceed */ - - if (!dns_initialize()) - { - nerr("ERROR: DNS failed to initialize\n"); - return -EAGAIN; - } - /* Get exclusive access to the DNS cache */ dns_semtake();