From e22dffba8e2e13fa9a3384a7d292807aef972594 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 30 Jul 2020 16:58:18 +0900 Subject: [PATCH] fs/mqueue/mq_close.c: Remove a redundant assignment Found by clang-check: mqueue/mq_close.c:127:21: warning: Value stored to 'rtcb' during its initialization is never read FAR struct tcb_s *rtcb = (FAR struct tcb_s *)nxsched_self(); ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. --- fs/mqueue/mq_close.c | 1 - 1 file changed, 1 deletion(-) 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 */