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 bba4bd25157be1f3a0aa5950d8feafddb0163687 Author: zhanghongyu <[email protected]> AuthorDate: Mon Nov 23 22:04:11 2026 +0800 net/udp: Fix coding style in udp_input.c. checkpatch reports a missing blank line after a declaration in udp_is_mcast() and misaligned code inside the #ifdef-guarded destination-unreachable block. Both are pre-existing, in a file that this series touches. Assisted-by: Kiro:claude-opus-4 Signed-off-by: zhanghongyu <[email protected]> --- net/udp/udp_input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/udp/udp_input.c b/net/udp/udp_input.c index cbef1c7a1c8..2eb01f53aec 100644 --- a/net/udp/udp_input.c +++ b/net/udp/udp_input.c @@ -104,6 +104,7 @@ static bool udp_is_broadcast(FAR struct net_driver_s *dev) # endif { FAR struct ipv6_hdr_s *ipv6 = IPv6BUF; + return net_is_addr_mcast(ipv6->destipaddr); } #endif @@ -428,7 +429,7 @@ static int udp_input(FAR struct net_driver_s *dev, unsigned int iplen) # endif /* CONFIG_NET_IPv4 */ # ifdef CONFIG_NET_IPv6 # ifdef CONFIG_NET_IPv4 - else + else # endif { # ifdef CONFIG_NET_ICMPv6
