mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 04:10:26 +08:00
pthreads: remove some useless variables
This commit is contained in:
parent
4b7e9c6447
commit
1422569e7c
@ -119,7 +119,6 @@ mqd_t mq_open(const char *name, int oflag, ...)
|
||||
{
|
||||
mqd_t mqdes;
|
||||
va_list arg;
|
||||
mode_t mode;
|
||||
struct mq_attr *attr = RT_NULL;
|
||||
|
||||
/* lock posix mqueue list */
|
||||
@ -129,8 +128,6 @@ mqd_t mq_open(const char *name, int oflag, ...)
|
||||
if (oflag & O_CREAT)
|
||||
{
|
||||
va_start(arg, oflag);
|
||||
mode = (mode_t)va_arg(arg, unsigned int);
|
||||
mode = mode;
|
||||
attr = (struct mq_attr *)va_arg(arg, struct mq_attr *);
|
||||
va_end(arg);
|
||||
|
||||
|
@ -101,7 +101,7 @@ int pthread_rwlock_destroy (pthread_rwlock_t *rwlock)
|
||||
{
|
||||
result = EBUSY;
|
||||
|
||||
return(EBUSY);
|
||||
return result;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -224,7 +224,6 @@ sem_t *sem_open(const char *name, int oflag, ...)
|
||||
{
|
||||
sem_t* sem;
|
||||
va_list arg;
|
||||
mode_t mode;
|
||||
unsigned int value;
|
||||
|
||||
sem = RT_NULL;
|
||||
@ -234,7 +233,6 @@ sem_t *sem_open(const char *name, int oflag, ...)
|
||||
if (oflag & O_CREAT)
|
||||
{
|
||||
va_start(arg, oflag);
|
||||
mode = (mode_t) va_arg( arg, unsigned int); mode = mode;
|
||||
value = va_arg( arg, unsigned int);
|
||||
va_end(arg);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user