[NUC472] remove dead code in nuc472_netif.c

pull/3918/head
cyliangtw 2017-03-14 19:48:37 +08:00
parent c58631bb71
commit f429675dd0
1 changed files with 6 additions and 5 deletions

View File

@ -135,7 +135,8 @@ void mbed_mac_address(char *mac)
mac[3] = (word0 & 0x00ff0000) >> 16; mac[3] = (word0 & 0x00ff0000) >> 16;
mac[4] = (word0 & 0x0000ff00) >> 8; mac[4] = (word0 & 0x0000ff00) >> 8;
mac[5] = (word0 & 0x000000ff); mac[5] = (word0 & 0x000000ff);
// printf("mac address %02x-%02x-%02x-%02x-%02x-%02x \r\n", mac[0], mac[1],mac[2],mac[3],mac[4],mac[5]);
LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING|LWIP_DBG_ON, ("mac address %02x-%02x-%02x-%02x-%02x-%02x \r\n", mac[0], mac[1],mac[2],mac[3],mac[4],mac[5]));
} }
/** /**
@ -356,7 +357,7 @@ ethernetif_loopback_input(struct pbuf *p) // TODO: make sure packet no
{ {
/* pass all packets to ethernet_input, which decides what packets it supports */ /* pass all packets to ethernet_input, which decides what packets it supports */
if (netif->input(p, netif) != ERR_OK) { if (netif->input(p, netif) != ERR_OK) {
LWIP_DEBUGF(NETIF_DEBUG, ("k64f_enetif_input: input error\n")); LWIP_DEBUGF(NETIF_DEBUG, ("netif_input: input error\n"));
/* Free buffer */ /* Free buffer */
pbuf_free(p); pbuf_free(p);
} }