summaryrefslogtreecommitdiff
path: root/nuttx/net/icmpv6/icmpv6_neighbor.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/icmpv6/icmpv6_neighbor.c')
-rw-r--r--nuttx/net/icmpv6/icmpv6_neighbor.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/nuttx/net/icmpv6/icmpv6_neighbor.c b/nuttx/net/icmpv6/icmpv6_neighbor.c
index 8c5d96180..794b02d67 100644
--- a/nuttx/net/icmpv6/icmpv6_neighbor.c
+++ b/nuttx/net/icmpv6/icmpv6_neighbor.c
@@ -206,9 +206,6 @@ int icmpv6_neighbor(const net_ipv6addr_t ipaddr)
struct timespec delay;
struct icmpv6_neighbor_s state;
FAR const uint16_t *lookup;
-#ifdef CONFIG_NET_NOINTS
- irqstate_t flags;
-#endif
net_lock_t save;
int ret;
@@ -381,15 +378,7 @@ int icmpv6_neighbor(const net_ipv6addr_t ipaddr)
delay.tv_sec = CONFIG_ICMPv6_NEIGHBOR_DELAYSEC;
delay.tv_nsec = CONFIG_ICMPv6_NEIGHBOR_DELAYNSEC;
-#ifdef CONFIG_NET_NOINTS
- flags = irqsave(); /* Keep things stable */
- net_unlock(save); /* Unlock the network with interrupts disabled */
-#endif
ret = icmpv6_wait(&notify, &delay);
-#ifdef CONFIG_NET_NOINTS
- save = net_lock(); /* Re-lock the network with interrupts disabled */
- irqrestore(flags);
-#endif
/* icmpv6_wait will return OK if and only if the matching Neighbor
* Advertisement is received. Otherwise, it will return -ETIMEDOUT.