summaryrefslogtreecommitdiff
path: root/nuttx/drivers/usbhost/usbhost_enumerate.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-12 09:33:52 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-12 09:33:52 -0600
commitb3b87cc272d39ed9cc28e97f264cd91462a1fd3b (patch)
treed5ef5bc29788e1beef9592955887e95b6a0dbf49 /nuttx/drivers/usbhost/usbhost_enumerate.c
parent891b20aff2fb5e52ff357e6208bb859a99cd7127 (diff)
downloadpx4-nuttx-b3b87cc272d39ed9cc28e97f264cd91462a1fd3b.tar.gz
px4-nuttx-b3b87cc272d39ed9cc28e97f264cd91462a1fd3b.tar.bz2
px4-nuttx-b3b87cc272d39ed9cc28e97f264cd91462a1fd3b.zip
STM32 OTGFS Host: Fix a logic error introduced in the last check-in
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_enumerate.c')
-rw-r--r--nuttx/drivers/usbhost/usbhost_enumerate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_enumerate.c b/nuttx/drivers/usbhost/usbhost_enumerate.c
index 96ff066aa..1857499ed 100644
--- a/nuttx/drivers/usbhost/usbhost_enumerate.c
+++ b/nuttx/drivers/usbhost/usbhost_enumerate.c
@@ -145,7 +145,7 @@ static inline int usbhost_devdesc(FAR const struct usb_devdesc_s *devdesc,
id->base, id->subclass, id->proto, id->vid, id->pid);
return OK;
}
-
+
/*******************************************************************************
* Name: usbhost_configdesc
*
@@ -193,7 +193,7 @@ static inline int usbhost_configdesc(const uint8_t *configdesc, int cfglen,
* Typically these values are zero meaning that the "real" ID
* information resides in the device descriptor.
*/
-
+
DEBUGASSERT(remaining >= sizeof(struct usb_ifdesc_s));
id->base = ifdesc->classid;
id->subclass = ifdesc->subclass;
@@ -204,7 +204,7 @@ static inline int usbhost_configdesc(const uint8_t *configdesc, int cfglen,
}
/* Increment the address of the next descriptor */
-
+
configdesc += ifdesc->len;
remaining -= ifdesc->len;
}
@@ -510,7 +510,7 @@ int usbhost_enumerate(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr,
* It is not needed further here but it may be needed by the class driver
* during its connection operations.
*/
-
+
DRVR_FREE(drvr, (uint8_t*)ctrlreq);
ctrlreq = NULL;