mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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;
|
int err;
|
||||||
|
|
||||||
if (attr != NULL)
|
|
||||||
{
|
|
||||||
return ENOSYS;
|
|
||||||
}
|
|
||||||
|
|
||||||
lock->num_readers = 0;
|
lock->num_readers = 0;
|
||||||
lock->num_writers = 0;
|
lock->num_writers = 0;
|
||||||
lock->write_in_progress = false;
|
lock->write_in_progress = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user