mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 10:54:43 +08:00
Replace all asserts in kernel code with ASSERT
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
f25a506f91
commit
20ebe0e64c
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user