PERF_STOP("pbuf_free");
/*** RPP - Notify driver that we got free space for it (FreeRTOS semaphore) ***/
#if !NO_SYS
- if (ref == 0 && type == PBUF_POOL)xSemaphoreGive(pbufFreed);
+ if (type == PBUF_POOL)xSemaphoreGive(pbufFreed);
#endif
/*** end driver notification ***/
/* return number of de-allocated pbufs */