mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-19 16:20:45 +00:00
Fixed unused local variable warning (patch #7711)
This commit is contained in:
parent
aecc5db1be
commit
13791ccff3
@ -1278,7 +1278,9 @@ ethernet_input(struct pbuf *p, struct netif *netif)
|
|||||||
{
|
{
|
||||||
struct eth_hdr* ethhdr;
|
struct eth_hdr* ethhdr;
|
||||||
u16_t type;
|
u16_t type;
|
||||||
|
#if LWIP_ARP || ETHARP_SUPPORT_VLAN
|
||||||
s16_t ip_hdr_offset = SIZEOF_ETH_HDR;
|
s16_t ip_hdr_offset = SIZEOF_ETH_HDR;
|
||||||
|
#endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */
|
||||||
|
|
||||||
if (p->len <= SIZEOF_ETH_HDR) {
|
if (p->len <= SIZEOF_ETH_HDR) {
|
||||||
/* a packet with only an ethernet header (or less) is not valid for us */
|
/* a packet with only an ethernet header (or less) is not valid for us */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user