Fix bug #55017: Wrong return value in sys_arch_mbox_tryfetch() in FreeRTOS port

This commit is contained in:
Dirk Ziegelmeier 2018-11-13 20:34:18 +01:00
parent d386388fb5
commit 915e923809

View File

@ -432,10 +432,7 @@ sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
}
LWIP_ASSERT("mbox fetch failed", ret == pdTRUE);
/* Old versions of lwIP required us to return the time waited.
This is not the case any more. Just returning != SYS_ARCH_TIMEOUT
here is enough. */
return 1;
return 0;
}
void