mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
Trivial, costmetic
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user