Skip to content

Commit

Permalink
lwip: use new mbox_unset() function
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Mar 19, 2024
1 parent 12194ad commit 6229fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lwip/include/arch/sys_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6229fda

Please sign in to comment.