mirror of
https://github.com/apache/nuttx.git
synced 2026-09-02 15:12:59 +00:00
Replace all asserts in kernel code with ASSERT
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
f25a506f91
commit
20ebe0e64c
27 changed files with 72 additions and 72 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue