This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 85c7e71a9143d44c730201307984202befe1ff71
Author: zhanghongyu <[email protected]>
AuthorDate: Mon Nov 23 16:52:32 2026 +0800

    mm/iob: Fix coding style in files touched by the queue rework.
    
    checkpatch reports a missing blank line after a declaration in
    iob_free() and a single-line while body in the IOB unit test.  Both
    are pre-existing, in files that the queue rework touches.
    
    Assisted-by: Kiro:claude-opus-4
    Signed-off-by: zhanghongyu <[email protected]>
---
 mm/iob/iob_free.c | 1 +
 mm/iob/iob_test.c | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/mm/iob/iob_free.c b/mm/iob/iob_free.c
index 4d9cfc56b5a..202e4eea17e 100644
--- a/mm/iob/iob_free.c
+++ b/mm/iob/iob_free.c
@@ -123,6 +123,7 @@ FAR struct iob_s *iob_free(FAR struct iob_s *iob)
     {
       FAR uint8_t *io_data = (FAR uint8_t *)ALIGN_UP((uintptr_t)(iob + 1),
                                                      IOB_ALIGNMENT);
+
       if (iob->io_data == io_data)
         {
           iob->io_free(iob);
diff --git a/mm/iob/iob_test.c b/mm/iob/iob_test.c
index e5650aab0c2..40aa7c82f79 100644
--- a/mm/iob/iob_test.c
+++ b/mm/iob/iob_test.c
@@ -183,7 +183,11 @@ int main(int argc, char **argv)
       fprintf(stderr, "Offset or packet length wrong\n");
     }
 
-  while (iob) iob = iob_free(iob);
+  while (iob)
+    {
+      iob = iob_free(iob);
+    }
+
   return EXIT_SUCCESS;
 }
 

Reply via email to