This is an automated email from the ASF dual-hosted git repository.

masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit cd695cd0d978b6dd0bd2a0baf8da1f955220ba66
Author: Xiang Xiao <[email protected]>
AuthorDate: Fri Apr 1 12:28:05 2022 +0800

    libc/netdb: Remove the temporary unlock in dns_foreach_nameserver
    
    since netdb support the recursive lock
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 libs/libc/netdb/lib_dnsforeach.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libs/libc/netdb/lib_dnsforeach.c b/libs/libc/netdb/lib_dnsforeach.c
index 1df7f7cb16..d93c323e65 100644
--- a/libs/libc/netdb/lib_dnsforeach.c
+++ b/libs/libc/netdb/lib_dnsforeach.c
@@ -253,9 +253,7 @@ int dns_foreach_nameserver(dns_callback_t callback, FAR 
void *arg)
 
           /* Perform the callback */
 
-          dns_semgive();
           ret = callback(arg, addr, sizeof(struct sockaddr_in));
-          dns_semtake();
         }
       else
 #endif
@@ -274,9 +272,7 @@ int dns_foreach_nameserver(dns_callback_t callback, FAR 
void *arg)
 
           /* Perform the callback */
 
-          dns_semgive();
           ret = callback(arg, addr, sizeof(struct sockaddr_in6));
-          dns_semtake();
         }
       else
 #endif

Reply via email to