mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 02:03:26 +00:00
trivial: Fix critical warning in future code
Both types need to be FuUdevDevice to compare the sysfs paths.
This commit is contained in:
parent
1a65617ac6
commit
f2cf09ba13
@ -7416,7 +7416,7 @@ fu_engine_backend_device_changed_cb(FuBackend *backend, FuDevice *device, FuEngi
|
||||
devices = fu_device_list_get_all(self->device_list);
|
||||
for (guint i = 0; i < devices->len; i++) {
|
||||
FuDevice *device_tmp = g_ptr_array_index(devices, i);
|
||||
if (!FU_IS_UDEV_DEVICE(device_tmp))
|
||||
if (!FU_IS_UDEV_DEVICE(device_tmp) || !FU_IS_UDEV_DEVICE(device))
|
||||
continue;
|
||||
if (g_strcmp0(fu_udev_device_get_sysfs_path(FU_UDEV_DEVICE(device_tmp)),
|
||||
fu_udev_device_get_sysfs_path(FU_UDEV_DEVICE(device))) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user