You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2026/10/17 22:34:44 UTC
(nuttx) 01/02: sched/addrenv/addrenv.c: Add blank lines after declarations.
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a10db629277a10ca7435b4a3c1fc8201b6dbadca
Author: Marco Casaroli <ma...@gmail.com>
AuthorDate: Mon Oct 12 10:21:35 2026 +0200
sched/addrenv/addrenv.c: Add blank lines after declarations.
Fix the nxstyle errors in the file before the next change.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <ma...@gmail.com>
---
sched/addrenv/addrenv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sched/addrenv/addrenv.c b/sched/addrenv/addrenv.c
index 2d9b59a8a9e..8c768336ea7 100644
--- a/sched/addrenv/addrenv.c
+++ b/sched/addrenv/addrenv.c
@@ -414,6 +414,7 @@ int addrenv_select(FAR struct addrenv_s *addrenv,
FAR struct addrenv_s **oldenv)
{
FAR struct tcb_s *tcb = this_task();
+
addrenv_take(addrenv);
*oldenv = tcb->addrenv_curr;
tcb->addrenv_curr = addrenv;
@@ -439,6 +440,7 @@ int addrenv_select(FAR struct addrenv_s *addrenv,
int addrenv_restore(FAR struct addrenv_s *addrenv)
{
FAR struct tcb_s *tcb = this_task();
+
addrenv_give(tcb->addrenv_curr);
tcb->addrenv_curr = addrenv;
return addrenv_switch(tcb);