From a31fe191fa2f03c555eaf4b58b0d12e1fe223dfa Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Tue, 25 Aug 2026 21:18:51 +0800 Subject: [PATCH] system/nxinit: fix missing blank line after declaration in parser.c init_parse_config_file() declares 'r' inside the read loop with no blank line before the following 'if (r < 0)' statement, violating the NuttX coding standard (nxstyle: "Missing blank line after declarations"). checkpatch.sh runs a whole-file nxstyle check on any file a commit touches, not diff-only, so this pre-existing issue surfaced on this PR's CI once parser.c was touched again. Assisted-by: GitHubCopilot:claude-sonnet-5 Signed-off-by: wangjianyu3 --- system/nxinit/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/system/nxinit/parser.c b/system/nxinit/parser.c index 8ef6508d7..664876b5a 100644 --- a/system/nxinit/parser.c +++ b/system/nxinit/parser.c @@ -269,6 +269,7 @@ int init_parse_config_file(FAR const struct parser_s *parser, for (; ; ) { ssize_t r = read(fd, &buf[n], sizeof(buf) - n); + if (r < 0) { if (errno == EINTR)