|
@@ -224,12 +224,14 @@ static int g_dnl_bind(struct usb_composite_dev *cdev)
|
|
|
g_dnl_string_defs[1].id = id;
|
|
|
device_desc.iProduct = id;
|
|
|
|
|
|
- id = usb_string_id(cdev);
|
|
|
- if (id < 0)
|
|
|
- return id;
|
|
|
+ if (strlen(g_dnl_serial)) {
|
|
|
+ id = usb_string_id(cdev);
|
|
|
+ if (id < 0)
|
|
|
+ return id;
|
|
|
|
|
|
- g_dnl_string_defs[2].id = id;
|
|
|
- device_desc.iSerialNumber = id;
|
|
|
+ g_dnl_string_defs[2].id = id;
|
|
|
+ device_desc.iSerialNumber = id;
|
|
|
+ }
|
|
|
|
|
|
g_dnl_bind_fixup(&device_desc, cdev->driver->name);
|
|
|
ret = g_dnl_config_register(cdev);
|