mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-12 21:44:47 +00:00
dfu: Do not show an invalid warning on attach
For some hardware, it is quite expected the device just resets.
This commit is contained in:
parent
0a37abfce8
commit
5ad6fb2a27
@ -1302,8 +1302,12 @@ fu_dfu_device_close (FuDevice *device, GError **error)
|
|||||||
if (!g_usb_device_release_interface (usb_device,
|
if (!g_usb_device_release_interface (usb_device,
|
||||||
(gint) priv->iface_number,
|
(gint) priv->iface_number,
|
||||||
0, &error_local)) {
|
0, &error_local)) {
|
||||||
g_warning ("failed to release interface: %s",
|
if (!g_error_matches (error_local,
|
||||||
error_local->message);
|
G_USB_DEVICE_ERROR,
|
||||||
|
G_USB_DEVICE_ERROR_NO_DEVICE)) {
|
||||||
|
g_warning ("failed to release interface: %s",
|
||||||
|
error_local->message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
priv->claimed_interface = FALSE;
|
priv->claimed_interface = FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user