This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e9c59ccee1abb3d66c538b5ffdd70890e9ed2bb0 Author: zhangyuan29 <[email protected]> AuthorDate: Wed Nov 18 17:54:20 2026 +0800 sched/group: fix nxstyle errors in group_free/malloc/realloc nxstyle reports a missing blank line after a declaration in each of these files, so any change to them fails the style check. No functional change. Signed-off-by: zhangyuan29 <[email protected]> --- sched/group/group_free.c | 1 + sched/group/group_malloc.c | 1 + sched/group/group_realloc.c | 1 + 3 files changed, 3 insertions(+) diff --git a/sched/group/group_free.c b/sched/group/group_free.c index 993e578f2c3..c537301f81e 100644 --- a/sched/group/group_free.c +++ b/sched/group/group_free.c @@ -56,6 +56,7 @@ void group_free(FAR struct task_group_s *group, FAR void *mem) if (!group) { FAR struct tcb_s *tcb = this_task(); + DEBUGASSERT(tcb && tcb->group); group = tcb->group; } diff --git a/sched/group/group_malloc.c b/sched/group/group_malloc.c index 25a7ff27751..0cc1b87c9e1 100644 --- a/sched/group/group_malloc.c +++ b/sched/group/group_malloc.c @@ -59,6 +59,7 @@ FAR void *group_malloc(FAR struct task_group_s *group, size_t nbytes) if (!group) { FAR struct tcb_s *tcb = this_task(); + DEBUGASSERT(tcb && tcb->group); group = tcb->group; } diff --git a/sched/group/group_realloc.c b/sched/group/group_realloc.c index 2b6bc0c3919..e1b023572fb 100644 --- a/sched/group/group_realloc.c +++ b/sched/group/group_realloc.c @@ -60,6 +60,7 @@ FAR void *group_realloc(FAR struct task_group_s *group, FAR void *oldmem, if (group == NULL) { FAR struct tcb_s *tcb = this_task(); + DEBUGASSERT(tcb && tcb->group); group = tcb->group; }
