Fix warnings found in build testing.

This commit is contained in:
Gregory Nutt 2019-08-27 16:20:39 -06:00
parent f40aac87e8
commit ac151e05e7
2 changed files with 5 additions and 15 deletions

View File

@ -449,7 +449,7 @@ config ENC1_MOD
if ENC1_MOD
config ENC1_MODULUS
int "Modulus to wrap around"
hex "Modulus to wrap around"
default 0xffffffff
endif # ENC1_MOD
@ -524,7 +524,7 @@ config ENC2_MOD
if ENC2_MOD
config ENC2_MODULUS
int "Modulus to wrap around"
hex "Modulus to wrap around"
default 0xffffffff
endif # ENC2_MOD
@ -601,7 +601,7 @@ config ENC3_MOD
if ENC3_MOD
config ENC3_MODULUS
int "Modulus to wrap around"
hex "Modulus to wrap around"
default 0xffffffff
endif # ENC3_MOD
@ -676,7 +676,7 @@ config ENC4_MOD
if ENC4_MOD
config ENC4_MODULUS
int "Modulus to wrap around"
hex "Modulus to wrap around"
default 0xffffffff
endif # ENC4_MOD

View File

@ -432,16 +432,6 @@ void tcp_reset(FAR struct net_driver_s *dev)
uint16_t tmp16;
uint16_t acklen = 0;
uint8_t seqbyte;
uint8_t domain;
#if defined(CONFIG_NET_IPv4) && defined(CONFIG_NET_IPv6)
bool ipv6 = IFF_IS_IPv6(dev->d_flags);
domain = ipv6 ? PF_INET6 : PF_INET;
#elif defined(CONFIG_NET_IPv4)
domain = PF_INET;
#else /* defined(CONFIG_NET_IPv6) */
domain = PF_INET6;
#endif
#ifdef CONFIG_NET_STATISTICS
g_netstats.tcp.rst++;
@ -456,7 +446,7 @@ void tcp_reset(FAR struct net_driver_s *dev)
#ifdef CONFIG_NET_IPv6
#ifdef CONFIG_NET_IPv4
if (ipv6)
if (IFF_IS_IPv6(dev->d_flags))
#endif
{
FAR struct ipv6_hdr_s *ip = IPv6BUF;