fixed the return value for sys_arch_mbox_fetch in lwip stack

This commit is contained in:
wangqiang 2022-01-12 17:51:40 +08:00
parent 2e95ec901a
commit 9e89fa158d
4 changed files with 4 additions and 4 deletions

View File

@ -534,7 +534,7 @@ u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
else
{
if (ret == RT_EOK)
ret = 1;
ret = 0;
}
return ret;

View File

@ -544,7 +544,7 @@ u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
else
{
if (ret == RT_EOK)
ret = 1;
ret = 0;
}
return ret;

View File

@ -544,7 +544,7 @@ u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
else
{
if (ret == RT_EOK)
ret = 1;
ret = 0;
}
return ret;

View File

@ -558,7 +558,7 @@ u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
else
{
if (ret == RT_EOK)
ret = 1;
ret = 0;
}
return ret;