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

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


The following commit(s) were added to refs/heads/master by this push:
     new 24e3cdf0c0 libc/pthread: remove unsed compare code in 
pthread_rwlock_init()
24e3cdf0c0 is described below

commit 24e3cdf0c0ca4169e146110b91a83c60728402bd
Author: yanghuatao <[email protected]>
AuthorDate: Mon Jun 26 12:00:45 2023 +0800

    libc/pthread: remove unsed compare code in pthread_rwlock_init()
    
    In nuttx function pthread_rwlock_init param attr is useless, so remove it 
to make rwlock_init pass rwlock_init/1-1.c and rwlock_init/3-1.c testcases.
    
    Signed-off-by: yanghuatao <[email protected]>
---
 libs/libc/pthread/pthread_rwlock.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libs/libc/pthread/pthread_rwlock.c 
b/libs/libc/pthread/pthread_rwlock.c
index c93ce2b25a..73c3f9e285 100644
--- a/libs/libc/pthread/pthread_rwlock.c
+++ b/libs/libc/pthread/pthread_rwlock.c
@@ -38,11 +38,6 @@ int pthread_rwlock_init(FAR pthread_rwlock_t *lock,
 {
   int err;
 
-  if (attr != NULL)
-    {
-      return ENOSYS;
-    }
-
   lock->num_readers       = 0;
   lock->num_writers       = 0;
   lock->write_in_progress = false;

Reply via email to