From 1422569e7cae6d7d6cef64e60ac3afe12b53f617 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Sat, 12 Apr 2014 16:54:20 +0800 Subject: pthreads: remove some useless variables --- components/pthreads/mqueue.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'components/pthreads/mqueue.c') diff --git a/components/pthreads/mqueue.c b/components/pthreads/mqueue.c index 7b669dc367..c1303ae6b1 100644 --- a/components/pthreads/mqueue.c +++ b/components/pthreads/mqueue.c @@ -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); -- cgit v1.3.1