]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/core/pbuf.c
lwip debug print functions
[pes-rpp/rpp-lwip.git] / src / core / pbuf.c
index 32c78e24f75c91a9f0fc441b952f71f687f25a0a..87b0feb093f7f516f6119dc4dc137257d4ccf5a8 100644 (file)
@@ -697,7 +697,7 @@ pbuf_free(struct pbuf *p)
   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 */