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 14b7c8972d0dcfc9eacd1a18b6c85348286e8e20
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 7 17:43:38 2026 +0200

    boards/arm/rp23xx: Fix the nxstyle errors in rp23xx_common_bringup.c.
    
    Indent the flash MTD block as nxstyle wants.  Whitespace only; git diff
    -w is empty.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 .../arm/rp23xx/common/src/rp23xx_common_bringup.c  | 52 +++++++++++-----------
 1 file changed, 26 insertions(+), 26 deletions(-)

diff --git a/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c 
b/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c
index 06fd98571e7..7d0d47506a5 100644
--- a/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c
+++ b/boards/arm/rp23xx/common/src/rp23xx_common_bringup.c
@@ -424,34 +424,34 @@ int rp23xx_common_bringup(void)
    * execute-in-place mappings straight out of flash.
    */
 
-    {
-      struct mtd_dev_s *mtd = rp23xx_flash_mtd_initialize();
-
-      if (mtd == NULL)
-        {
-          serr("ERROR: Failed to initialize the flash MTD device\n");
-        }
-      else
-        {
-          ret = register_mtddriver("/dev/rpflash", mtd, 0755, NULL);
-          if (ret < 0)
-            {
-              serr("ERROR: Failed to register /dev/rpflash: %d\n", ret);
-            }
+  {
+    struct mtd_dev_s *mtd = rp23xx_flash_mtd_initialize();
+
+    if (mtd == NULL)
+      {
+        serr("ERROR: Failed to initialize the flash MTD device\n");
+      }
+    else
+      {
+        ret = register_mtddriver("/dev/rpflash", mtd, 0755, NULL);
+        if (ret < 0)
+          {
+            serr("ERROR: Failed to register /dev/rpflash: %d\n", ret);
+          }
 #ifdef CONFIG_FS_XIPFS
-          else
-            {
-              ret = nx_mount("/dev/rpflash", "/mnt/xipfs", "xipfs", 0,
-                             "autoformat");
-              if (ret < 0)
-                {
-                  serr("ERROR: Failed to mount xipfs at /mnt/xipfs: %d\n",
-                       ret);
-                }
-            }
+        else
+          {
+            ret = nx_mount("/dev/rpflash", "/mnt/xipfs", "xipfs", 0,
+                           "autoformat");
+            if (ret < 0)
+              {
+                serr("ERROR: Failed to mount xipfs at /mnt/xipfs: %d\n",
+                     ret);
+              }
+          }
 #endif
-        }
-    }
+      }
+  }
 #endif
 
 #ifdef CONFIG_RP23XX_OTP

Reply via email to