summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-10-11 23:43:10 +0000
committer[email protected] <[email protected]>2012-10-11 23:43:10 +0000
commit6bf06f759576daee82d402133062af5520f526c1 (patch)
treeb9e5641e05aec2264be35254dfca92e4d72bdc7a
parentf1862e80f76bb21c817e4920abd010077ada0a6a (diff)
remove unused code in _set_interface
& modify some comment in rt_usb_device_init git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2346 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/drivers/usb/usbdevice/core/core.c3
-rw-r--r--components/drivers/usb/usbdevice/core/usbdevice.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/components/drivers/usb/usbdevice/core/core.c b/components/drivers/usb/usbdevice/core/core.c
index 7cc4ea4a0b..cfd11cd485 100644
--- a/components/drivers/usb/usbdevice/core/core.c
+++ b/components/drivers/usb/usbdevice/core/core.c
@@ -221,9 +221,6 @@ static rt_err_t _set_interface(struct udevice* device, ureq_t setup)
RT_DEBUG_LOG(RT_DEBUG_USB, ("_set_interface\n"));
- setup->index & 0xFF;
- setup->value & 0xFF;
-
/* find the specified interface */
intf = rt_usbd_find_interface(device, setup->index & 0xFF);
diff --git a/components/drivers/usb/usbdevice/core/usbdevice.c b/components/drivers/usb/usbdevice/core/usbdevice.c
index 97e370194e..e2af11a3da 100644
--- a/components/drivers/usb/usbdevice/core/usbdevice.c
+++ b/components/drivers/usb/usbdevice/core/usbdevice.c
@@ -69,7 +69,7 @@ rt_err_t rt_usb_device_init(const char* udc_name)
/* set device descriptor to the device */
rt_usbd_device_set_descriptor(udevice, cls->dev_desc);
- /* add the mass storage class to the configuration */
+ /* add the class to the configuration */
rt_usbd_config_add_class(cfg, cls);
/* add the configuration to the device */