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 a3254183802216cf9e04adde045c26701aeddab4
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 28 22:07:45 2026 +0100

    net/inet/ipv6_setsockopt.c: Fix the indentation of IPV6_MULTICAST_IF.
    
    The block of the IPV6_MULTICAST_IF case has its braces at the column of
    the case label, and nxstyle reports "Bad left brace alignment".  Indent
    the block by two spaces.  The error is older than the next change; this
    commit changes only white space.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 net/inet/ipv6_setsockopt.c | 48 +++++++++++++++++++++++-----------------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/net/inet/ipv6_setsockopt.c b/net/inet/ipv6_setsockopt.c
index 28b9068b4b1..881c508f1e2 100644
--- a/net/inet/ipv6_setsockopt.c
+++ b/net/inet/ipv6_setsockopt.c
@@ -112,35 +112,35 @@ int ipv6_setsockopt(FAR struct socket *psock, int option,
       case IPV6_MULTICAST_IF:     /* Interface to use for outgoing multicast
                                    * packets */
 #ifdef NET_UDP_HAVE_STACK
-      {
-        FAR struct net_driver_s *dev;
-        FAR struct udp_conn_s *conn = psock->s_conn;
-        int ifindex = *(FAR int *)value;
-
-        if (ifindex > 0)
-          {
-            dev = netdev_findbyindex(ifindex);
-            if (dev == NULL)
-              {
-                ret = -ENODEV;
-                break;
-              }
+        {
+          FAR struct net_driver_s *dev;
+          FAR struct udp_conn_s *conn = psock->s_conn;
+          int ifindex = *(FAR int *)value;
+
+          if (ifindex > 0)
+            {
+              dev = netdev_findbyindex(ifindex);
+              if (dev == NULL)
+                {
+                  ret = -ENODEV;
+                  break;
+                }
 
 #ifdef CONFIG_NET_BINDTODEVICE
-            if (conn->sconn.s_boundto &&
-                ifindex != conn->sconn.s_boundto)
-              {
-                ret = -EINVAL;
-                break;
-              }
+              if (conn->sconn.s_boundto &&
+                  ifindex != conn->sconn.s_boundto)
+                {
+                  ret = -EINVAL;
+                  break;
+                }
 #endif
-          }
+            }
 
-        conn->mreq.imr_ifindex = ifindex;
+          conn->mreq.imr_ifindex = ifindex;
 
-        ret = OK;
-        break;
-      }
+          ret = OK;
+          break;
+        }
 #endif /* NET_UDP_HAVE_STACK */
 #endif /* CONFIG_NET_MLD */
 

Reply via email to