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

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

commit f67d4da5a8c598515eff8c8687876a3d4b32dc05
Author: Ricard Rosson <[email protected]>
AuthorDate: Fri Nov 27 05:24:10 2026 +0000

    arch/xtensa/esp32s3: Fix nxstyle errors in esp32s3_usbserial.c.
    
    Indent the cases of the switch of esp32s3_ioctl() as nxstyle wants
    ("Bad alignment", "Bad left brace alignment").  No change of the code.
    
    Assisted-by: Claude Code:claude-fable-5-2
    Signed-off-by: Ricard Rosson <[email protected]>
---
 arch/xtensa/src/esp32s3/esp32s3_usbserial.c | 52 ++++++++++++++---------------
 1 file changed, 26 insertions(+), 26 deletions(-)

diff --git a/arch/xtensa/src/esp32s3/esp32s3_usbserial.c 
b/arch/xtensa/src/esp32s3/esp32s3_usbserial.c
index 6ab3070e07a..dfa5ddb8754 100644
--- a/arch/xtensa/src/esp32s3/esp32s3_usbserial.c
+++ b/arch/xtensa/src/esp32s3/esp32s3_usbserial.c
@@ -423,34 +423,34 @@ static int esp32s3_ioctl(struct file *filep, int cmd, 
unsigned long arg)
   switch (cmd)
     {
 #ifdef CONFIG_SERIAL_TERMIOS
-    case TCGETS:
-      {
-        struct termios *termiosp = (struct termios *)arg;
-
-        if (!termiosp)
-          {
-            ret = -EINVAL;
-          }
-        else
-          {
-            /* The USB Serial Console has fixed configuration of:
-             *    9600 baudrate, no parity, 8 bits, 1 stopbit.
-             */
-
-            termiosp->c_cflag = CS8;
-            cfsetispeed(termiosp, 9600);
-          }
-      }
-      break;
-
-    case TCSETS:
-      ret = -ENOTTY;
-      break;
+      case TCGETS:
+        {
+          struct termios *termiosp = (struct termios *)arg;
+
+          if (!termiosp)
+            {
+              ret = -EINVAL;
+            }
+          else
+            {
+              /* The USB Serial Console has fixed configuration of:
+               *    9600 baudrate, no parity, 8 bits, 1 stopbit.
+               */
+
+              termiosp->c_cflag = CS8;
+              cfsetispeed(termiosp, 9600);
+            }
+        }
+        break;
+
+      case TCSETS:
+        ret = -ENOTTY;
+        break;
 #endif /* CONFIG_SERIAL_TERMIOS */
 
-    default:
-      ret = -ENOTTY;
-      break;
+      default:
+        ret = -ENOTTY;
+        break;
     }
 
   return ret;

Reply via email to