mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-06 05:47:12 +00:00
analogix: Do not check the endpoints before selecting an interface
My Analogix USB device has a Billboard interface, with bNumEndpoints=0. When emulating the interface is NULL, and in runtime the array can *never* be NULL, so I think this check was added in error.
This commit is contained in:
parent
390796c0d3
commit
eff7bfed8e
@ -208,11 +208,6 @@ fu_analogix_device_find_interface(FuUsbDevice *device, GError **error)
|
||||
if (g_usb_interface_get_class(intf) == BILLBOARD_CLASS &&
|
||||
g_usb_interface_get_subclass(intf) == BILLBOARD_SUBCLASS &&
|
||||
g_usb_interface_get_protocol(intf) == BILLBOARD_PROTOCOL) {
|
||||
g_autoptr(GPtrArray) endpoints = NULL;
|
||||
|
||||
endpoints = g_usb_interface_get_endpoints(intf);
|
||||
if (endpoints == NULL)
|
||||
continue;
|
||||
fu_usb_device_add_interface(FU_USB_DEVICE(self),
|
||||
g_usb_interface_get_number(intf));
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user