Fix devif/ipv4_input.c:405:1: warning: label ‘done’ defined but not used [-Wunused-label]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-27 14:49:47 +08:00 committed by archer
parent 6fa60627eb
commit 4663987e66
3 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,7 @@
#include <netinet/in.h>
#include <nuttx/net/net.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/arp.h>

View File

@ -47,6 +47,7 @@
#include <string.h>
#include <debug.h>
#include <nuttx/net/net.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/arp.h>

View File

@ -402,7 +402,10 @@ int ipv4_input(FAR struct net_driver_s *dev)
goto drop;
}
#if defined(CONFIG_NET_IPFORWARD) || \
(defined(CONFIG_NET_BROADCAST) && defined(NET_UDP_HAVE_STACK))
done:
#endif
if (dev->d_len > 0)
{
arp_out(dev);