mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user