Networking: Eliminate a warning with UDP checksums are suppressed

This commit is contained in:
Gregory Nutt 2015-01-23 11:42:12 -06:00
parent f4ce875711
commit af71b7a1ed

View File

@ -99,7 +99,9 @@ static int udp_input(FAR struct net_driver_s *dev, unsigned int iplen)
FAR struct udp_conn_s *conn;
unsigned int udpiplen;
unsigned int hdrlen;
#ifdef CONFIG_NET_UDP_CHECKSUMS
uint16_t chksum;
#endif
int ret = OK;
/* Update the count of UDP packets received */