4
0
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:
Grissiom 2014-04-12 16:54:20 +08:00
parent 4b7e9c6447
commit 1422569e7c
3 changed files with 1 additions and 6 deletions

View File

@ -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);

View File

@ -101,7 +101,7 @@ int pthread_rwlock_destroy (pthread_rwlock_t *rwlock)
{
result = EBUSY;
return(EBUSY);
return result;
}
else
{

View File

@ -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);