summaryrefslogtreecommitdiff
path: root/nuttx/drivers/usbhost
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
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')
-rw-r--r--nuttx/drivers/usbhost/usbhost_enumerate.c8
-rw-r--r--nuttx/drivers/usbhost/usbhost_trace.c2
2 files changed, 4 insertions, 6 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;
diff --git a/nuttx/drivers/usbhost/usbhost_trace.c b/nuttx/drivers/usbhost/usbhost_trace.c
index 92dc2c570..d6d1f4dd4 100644
--- a/nuttx/drivers/usbhost/usbhost_trace.c
+++ b/nuttx/drivers/usbhost/usbhost_trace.c
@@ -301,5 +301,3 @@ int usbhost_trdump(void)
return usbhost_trenumerate(usbhost_trsyslog, NULL);
}
#endif /* CONFIG_USBHOST_TRACE */
-
-