Trivial, costmetic

This commit is contained in:
Gregory Nutt
2017-07-15 17:11:41 -06:00
parent 74b916ff84
commit 0729151d29
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -807,6 +807,8 @@ FAR void *composite_initialize(uint8_t ndevices,
int ret; int ret;
int i; int i;
DEBUGASSERT(pdevices != NULL && ndevices <= NUM_DEVICES_TO_HANDLE);
/* Allocate the structures needed */ /* Allocate the structures needed */
alloc = (FAR struct composite_alloc_s *) alloc = (FAR struct composite_alloc_s *)
@@ -866,9 +868,10 @@ FAR void *composite_initialize(uint8_t ndevices,
/* Register the USB composite class driver */ /* Register the USB composite class driver */
ret = usbdev_register(&drvr->drvr); ret = usbdev_register(&drvr->drvr);
if (ret) if (ret < 0)
{ {
usbtrace(TRACE_CLSERROR(USBCOMPOSITE_TRACEERR_DEVREGISTER), (uint16_t)-ret); usbtrace(TRACE_CLSERROR(USBCOMPOSITE_TRACEERR_DEVREGISTER),
(uint16_t)-ret);
goto errout_with_alloc; goto errout_with_alloc;
} }
+1 -1
View File
@@ -116,7 +116,7 @@
# define COMPOSITE_REMOTEWAKEUP (0) # define COMPOSITE_REMOTEWAKEUP (0)
#endif #endif
#define NUM_DEVICES_TO_HANDLE (4) #define NUM_DEVICES_TO_HANDLE (4)
/* Descriptors **************************************************************/ /* Descriptors **************************************************************/
/* These settings are not modifiable via the NuttX configuration */ /* These settings are not modifiable via the NuttX configuration */