mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 09:14:40 +00:00
trivial: Fix builds with -Dgusb=false
This commit is contained in:
parent
2734f0ab77
commit
c74c0ab655
@ -354,6 +354,7 @@ fu_usb_device_close(FuDevice *device, GError **error)
|
||||
if (priv->usb_device_locker == NULL)
|
||||
return TRUE;
|
||||
|
||||
#ifdef HAVE_GUSB
|
||||
/* release interfaces, ignoring errors */
|
||||
for (guint i = 0; priv->interfaces != NULL && i < priv->interfaces->len; i++) {
|
||||
FuUsbDeviceInterface *iface = g_ptr_array_index(priv->interfaces, i);
|
||||
@ -381,6 +382,7 @@ fu_usb_device_close(FuDevice *device, GError **error)
|
||||
}
|
||||
iface->claimed = FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
g_clear_object(&priv->usb_device_locker);
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user