Fixed unused local variable warning (patch #7711)

This commit is contained in:
goldsimon 2012-02-13 20:41:58 +01:00
parent aecc5db1be
commit 13791ccff3

View File

@ -1278,7 +1278,9 @@ ethernet_input(struct pbuf *p, struct netif *netif)
{
struct eth_hdr* ethhdr;
u16_t type;
#if LWIP_ARP || ETHARP_SUPPORT_VLAN
s16_t ip_hdr_offset = SIZEOF_ETH_HDR;
#endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */
if (p->len <= SIZEOF_ETH_HDR) {
/* a packet with only an ethernet header (or less) is not valid for us */