mirror of
https://github.com/apache/nuttx.git
synced 2026-03-26 18:23:50 +08:00
drivers/usbdev: Eliminate some warnings
This commit is contained in:
@@ -436,6 +436,7 @@ static int composite_setup(FAR struct usbdevclass_driver_s *driver,
|
||||
|
||||
uvdbg("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl->type, ctrl->req, value, index, len);
|
||||
UNUSED(index);
|
||||
|
||||
if ((ctrl->type & USB_REQ_TYPE_MASK) == USB_REQ_TYPE_STANDARD)
|
||||
{
|
||||
|
||||
@@ -1617,7 +1617,9 @@ int usbmsc_exportluns(FAR void *handle)
|
||||
{
|
||||
FAR struct usbmsc_alloc_s *alloc = (FAR struct usbmsc_alloc_s *)handle;
|
||||
FAR struct usbmsc_dev_s *priv;
|
||||
#ifndef CONFIG_USBMSC_COMPOSITE
|
||||
FAR struct usbmsc_driver_s *drvr;
|
||||
#endif
|
||||
irqstate_t flags;
|
||||
int ret = OK;
|
||||
|
||||
@@ -1630,7 +1632,9 @@ int usbmsc_exportluns(FAR void *handle)
|
||||
#endif
|
||||
|
||||
priv = &alloc->dev;
|
||||
#ifndef CONFIG_USBMSC_COMPOSITE
|
||||
drvr = &alloc->drvr;
|
||||
#endif
|
||||
|
||||
/* Start the worker thread
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user