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:
parent
17aec1328a
commit
fa31c1c21b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue