Replace all asserts in kernel code with ASSERT

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2024-05-13 19:30:47 +08:00 committed by Alan Carvalho de Assis
parent f25a506f91
commit 20ebe0e64c
27 changed files with 72 additions and 72 deletions

View file

@ -476,7 +476,7 @@ static int usbdev_fs_open(FAR struct file *filep)
fs_ep->crefs += 1;
assert(fs_ep->crefs != 0);
ASSERT(fs_ep->crefs != 0);
nxmutex_unlock(&fs_ep->lock);
return ret;
@ -510,7 +510,7 @@ static int usbdev_fs_close(FAR struct file *filep)
fs_ep->crefs -= 1;
assert(fs_ep->crefs >= 0);
ASSERT(fs_ep->crefs >= 0);
if (fs_ep->unlinked && fs_ep->crefs == 0)
{