lwip: rework according review comments

This commit is contained in:
Liu Zhi Fu
2017-01-05 12:22:49 +08:00
parent be994740b4
commit d98b99f4f0
5 changed files with 14 additions and 7 deletions

View File

@@ -202,8 +202,10 @@ recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p,
#endif /* LWIP_NETBUF_RECVINFO */
}
#ifdef ESP_PERF
if (p->len > DBG_PERF_FILTER_LEN) DBG_PERF_PATH_SET(DBG_PERF_DIR_RX, DBG_PERF_POINT_LWIP_OUT);
#if ESP_PERF
if (p->len > DBG_PERF_FILTER_LEN) {
DBG_PERF_PATH_SET(DBG_PERF_DIR_RX, DBG_PERF_POINT_LWIP_OUT);
}
#endif
len = p->tot_len;