mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
lwip: use new mbox_unset() function
This commit is contained in:
parent
12194ad9e6
commit
6229fda7bd
@ -101,13 +101,13 @@ typedef struct {
|
||||
|
||||
static inline bool sys_mbox_valid(sys_mbox_t *mbox)
|
||||
{
|
||||
return (mbox != NULL) && (mbox->mbox.cib.mask != 0);
|
||||
return (mbox != NULL) && (mbox_size(&mbox->mbox) != 0);
|
||||
}
|
||||
|
||||
static inline void sys_mbox_set_invalid(sys_mbox_t *mbox)
|
||||
{
|
||||
if (mbox != NULL) {
|
||||
mbox->mbox.cib.mask = 0;
|
||||
mbox_unset(&mbox->mbox);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user