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:
parent
6fa60627eb
commit
4663987e66
|
@ -45,6 +45,7 @@
|
|||
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include <nuttx/net/net.h>
|
||||
#include <nuttx/net/netdev.h>
|
||||
#include <nuttx/net/arp.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue