Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143066311
D43383.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43383.diff
View Options
diff --git a/sys/dev/usb/usb_util.c b/sys/dev/usb/usb_util.c
--- a/sys/dev/usb/usb_util.c
+++ b/sys/dev/usb/usb_util.c
@@ -73,9 +73,7 @@
{
struct usb_attach_arg *uaa;
struct usb_device *udev;
- struct usb_interface *iface;
char *temp_p;
- usb_error_t err;
uint8_t do_unlock;
if (dev == NULL) {
@@ -88,33 +86,11 @@
return;
}
udev = uaa->device;
- iface = uaa->iface;
-
- if ((iface == NULL) ||
- (iface->idesc == NULL) ||
- (iface->idesc->iInterface == 0)) {
- err = USB_ERR_INVAL;
- } else {
- err = 0;
- }
/* Protect scratch area */
do_unlock = usbd_ctrl_lock(udev);
-
temp_p = (char *)udev->scratch.data;
-
- if (err == 0) {
- /* try to get the interface string ! */
- err = usbd_req_get_string_any(udev, NULL, temp_p,
- sizeof(udev->scratch.data),
- iface->idesc->iInterface);
- }
- if (err != 0) {
- /* use default description */
- usb_devinfo(udev, temp_p,
- sizeof(udev->scratch.data));
- }
-
+ usb_devinfo(udev, temp_p, sizeof(udev->scratch.data));
if (do_unlock)
usbd_ctrl_unlock(udev);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 26, 2:40 PM (12 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28037498
Default Alt Text
D43383.diff (1 KB)
Attached To
Mode
D43383: usb: use only usb_devinfo() in device_set_usb_desc()
Attached
Detach File
Event Timeline
Log In to Comment