driver/usbdev_fs: fix minor issue about unbind
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
b6e09955dd
commit
f6098244f6
@ -1162,7 +1162,7 @@ static void usbdev_fs_classunbind(FAR struct usbdevclass_driver_s *driver,
|
|||||||
|
|
||||||
if (fs->eps != NULL)
|
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",
|
snprintf(devname, sizeof(devname), "%s/ep%d",
|
||||||
devinfo->name, i + 1);
|
devinfo->name, i + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user