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/18 11:43:04 UTC
(nuttx) 01/02: fs/procfs: Fix the nxstyle error in fs_procfs.c.
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 697fb4e212bc77f9b59f859c8506ebf439c2540a
Author: Marco Casaroli <ma...@gmail.com>
AuthorDate: Sat Oct 17 23:57:28 2026 +0200
fs/procfs: Fix the nxstyle error in fs_procfs.c.
nxstyle reports "Missing blank line after declarations" in
procfs_stat().
Add the blank line. This commit changes only whitespace.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <ma...@gmail.com>
---
fs/procfs/fs_procfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/procfs/fs_procfs.c b/fs/procfs/fs_procfs.c
index f4cba0c2bb3..b680b1152d7 100644
--- a/fs/procfs/fs_procfs.c
+++ b/fs/procfs/fs_procfs.c
@@ -949,6 +949,7 @@ static int procfs_readdir(FAR struct inode *mountpt,
pid_t pid = level0->pid[index];
FAR struct tcb_s *tcb = nxsched_get_tcb(pid);
+
if (!tcb)
{
ferr("ERROR: PID %d is no longer valid\n", pid);