net/devif/devif_poll.c: Correct a new warning found in build testing. devif/devif_poll.c:768:7: warning: unused variable 'hsec' [-Wunused-variable] (#97)

This commit is contained in:
patacongo 2020-01-13 20:11:43 -06:00 committed by Abdelatif Guettouche
parent f00569816f
commit 21ea255ea4
1 changed files with 2 additions and 0 deletions

View File

@ -765,7 +765,9 @@ int devif_poll(FAR struct net_driver_s *dev, devif_poll_callback_t callback)
int devif_timer(FAR struct net_driver_s *dev, int delay, int devif_timer(FAR struct net_driver_s *dev, int delay,
devif_poll_callback_t callback) devif_poll_callback_t callback)
{ {
#if defined(CONFIG_NET_IPv4_REASSEMBLY) || defined(NET_TCP_HAVE_STACK)
int hsec = TICK2HSEC(delay); int hsec = TICK2HSEC(delay);
#endif
int bstop = false; int bstop = false;
#ifdef CONFIG_NET_IPv4_REASSEMBLY #ifdef CONFIG_NET_IPv4_REASSEMBLY