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:
parent
673a43d5fa
commit
d05de762bc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue