Skip to content

Commit 1f42289

Browse files
committed
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 <zhanghongyu@xiaomi.com>
1 parent bb68283 commit 1f42289

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/udp/udp_input.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ static bool udp_is_broadcast(FAR struct net_driver_s *dev)
104104
# endif
105105
{
106106
FAR struct ipv6_hdr_s *ipv6 = IPv6BUF;
107+
107108
return net_is_addr_mcast(ipv6->destipaddr);
108109
}
109110
#endif
@@ -428,7 +429,7 @@ static int udp_input(FAR struct net_driver_s *dev, unsigned int iplen)
428429
# endif /* CONFIG_NET_IPv4 */
429430
# ifdef CONFIG_NET_IPv6
430431
# ifdef CONFIG_NET_IPv4
431-
else
432+
else
432433
# endif
433434
{
434435
# ifdef CONFIG_NET_ICMPv6

0 commit comments

Comments
 (0)