summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/libc/posix/ipc/mqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/posix/ipc/mqueue.c b/components/libc/posix/ipc/mqueue.c
index b2e7b7b6c4..4b5905ef48 100644
--- a/components/libc/posix/ipc/mqueue.c
+++ b/components/libc/posix/ipc/mqueue.c
@@ -138,7 +138,7 @@ mqd_t mq_open(const char *name, int oflag, ...)
/* lock posix mqueue list */
rt_sem_take(&posix_mq_lock, RT_WAITING_FOREVER);
int len = rt_strlen(name);
- if (len > PATH_MAX || len > RT_NAME_MAX)
+ if (len > RT_NAME_MAX)
{
rt_set_errno(ENAMETOOLONG);
goto __return;