mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
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 <yanghuatao@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user