You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/01/28 02:27:47 UTC

[incubator-nuttx] branch master updated: sched: mqueue: Remove an unnecessary comment in mq_send.c

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f5793e  sched: mqueue: Remove an unnecessary comment in mq_send.c
6f5793e is described below

commit 6f5793eefc5866feb3b7813821365668eb2a258b
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Thu Jan 28 08:52:22 2021 +0900

    sched: mqueue: Remove an unnecessary comment in mq_send.c
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 sched/mqueue/mq_send.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sched/mqueue/mq_send.c b/sched/mqueue/mq_send.c
index d65c09a..a4e7307 100644
--- a/sched/mqueue/mq_send.c
+++ b/sched/mqueue/mq_send.c
@@ -113,7 +113,7 @@ int file_mq_send(FAR struct file *mq, FAR const char *msg, size_t msglen,
     {
       /* No.. Not in an interrupt handler.  Is the message queue FULL? */
 
-      if (msgq->nmsgs >= msgq->maxmsgs) /* Message queue not-FULL? */
+      if (msgq->nmsgs >= msgq->maxmsgs)
         {
           /* Yes.. the message queue is full.  Wait for space to become
            * available in the message queue.