libc/netdb: Don't need call dns_initialize in dns_find_answer

so let remove it

Change-Id: I6b09673caf8cb16d90cbda8b791f1ef0ba59e2a2
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-03-29 03:41:59 +08:00 committed by patacongo
parent 673a43d5fa
commit d05de762bc
1 changed files with 0 additions and 8 deletions

View File

@ -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();