mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
usbdev: delete unsigned comparison with 0
The unsigned type is always greater than or equal to 0 Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
@@ -510,8 +510,6 @@ static int usbdev_fs_close(FAR struct file *filep)
|
||||
|
||||
fs_ep->crefs -= 1;
|
||||
|
||||
ASSERT(fs_ep->crefs >= 0);
|
||||
|
||||
if (fs_ep->unlinked && fs_ep->crefs == 0)
|
||||
{
|
||||
bool do_free = true;
|
||||
|
||||
Reference in New Issue
Block a user