driver/usbdev_fs: fix minor issue about unbind

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2023-11-02 14:48:11 +08:00 committed by Xiang Xiao
parent b6e09955dd
commit f6098244f6

View File

@ -1162,7 +1162,7 @@ static void usbdev_fs_classunbind(FAR struct usbdevclass_driver_s *driver,
if (fs->eps != NULL)
{
for (i = 0; i < devinfo->ninterfaces; i++)
for (i = 0; i < devinfo->nendpoints; i++)
{
snprintf(devname, sizeof(devname), "%s/ep%d",
devinfo->name, i + 1);