diff --git a/drivers/usbdev/usbdev_fs.c b/drivers/usbdev/usbdev_fs.c index c8093df6e5..cacc62db5c 100644 --- a/drivers/usbdev/usbdev_fs.c +++ b/drivers/usbdev/usbdev_fs.c @@ -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;