diff --git a/fs/mqueue/mq_close.c b/fs/mqueue/mq_close.c index c42e8765fb..934c7eb19d 100644 --- a/fs/mqueue/mq_close.c +++ b/fs/mqueue/mq_close.c @@ -133,7 +133,6 @@ int nxmq_close(mqd_t mqdes) sched_lock(); - rtcb = (FAR struct tcb_s *)nxsched_self(); DEBUGASSERT(mqdes != NULL && rtcb != NULL && rtcb->group != NULL); /* Then perform the close operation */