Fixed unused local variable warning (patch #7711)

This commit is contained in:
goldsimon 2012-02-13 20:41:58 +01:00
parent 7d0dab9d7d
commit c279692cfe

View File

@ -1279,7 +1279,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 */