diff --git a/graphics/nxmu/nxmu_server.c b/graphics/nxmu/nxmu_server.c index ec5f68ccb9..79cb140a3e 100644 --- a/graphics/nxmu/nxmu_server.c +++ b/graphics/nxmu/nxmu_server.c @@ -346,7 +346,7 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev) /* Dispatch the message appropriately */ - DEBUGASSERT(nbytes >= sizeof(struct nxsvrmsg_s)); + DEBUGASSERT(nbytes >= sizeof(struct nxsvrmsg_releasebkgd_s)); msg = (FAR struct nxsvrmsg_s *)buffer; ginfo("Received opcode=%d nbytes=%d\n", msg->msgid, nbytes); diff --git a/sched/task/task_exithook.c b/sched/task/task_exithook.c index 7333526415..60a8a3a667 100644 --- a/sched/task/task_exithook.c +++ b/sched/task/task_exithook.c @@ -215,7 +215,6 @@ static inline void task_exitstatus(FAR struct task_group_s *group, int status) /* No.. Find the exit status entry for this task in the parent TCB */ child = group_findchild(group, getpid()); - DEBUGASSERT(child); if (child) { #ifndef HAVE_GROUP_MEMBERS @@ -260,7 +259,6 @@ static inline void task_groupexit(FAR struct task_group_s *group) /* No.. Find the exit status entry for this task in the parent TCB */ child = group_findchild(group, getpid()); - DEBUGASSERT(child); if (child) { /* Mark that all members of the child task group has exited */