mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
Cosmetic spacing and used UNUSEd macro
This commit is contained in:
@@ -236,8 +236,7 @@ int cdcacm_copy_epdesc(enum cdcacm_epdesc_e epid,
|
||||
bool hispeed)
|
||||
{
|
||||
#ifndef CONFIG_USBDEV_DUALSPEED
|
||||
/* unused */
|
||||
(void)hispeed;
|
||||
UNUSED(hispeed);
|
||||
#endif
|
||||
|
||||
switch (epid)
|
||||
@@ -255,7 +254,7 @@ int cdcacm_copy_epdesc(enum cdcacm_epdesc_e epid,
|
||||
/* Maximum packet size (high speed) */
|
||||
|
||||
epdesc->mxpacketsize[0] = LSBYTE(CONFIG_CDCACM_EPINTIN_HSSIZE);
|
||||
epdesc->mxpacketsize[1] = MSBYTE(CONFIG_CDCACM_EPINTIN_HSSIZE);
|
||||
epdesc->mxpacketsize[1] = MSBYTE(CONFIG_CDCACM_EPINTIN_HSSIZE);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
||||
@@ -230,9 +230,7 @@ int usbmsc_copy_epdesc(enum usbmsc_epdesc_e epid,
|
||||
bool hispeed)
|
||||
{
|
||||
#ifndef CONFIG_USBDEV_DUALSPEED
|
||||
/* unused */
|
||||
|
||||
(void)hispeed;
|
||||
UNUSED(hispeed);
|
||||
#endif
|
||||
|
||||
switch (epid)
|
||||
|
||||
Reference in New Issue
Block a user