mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 14:32:56 +00:00
elantp: Fix a crash when starting the daemon
FuElantpHidDevice derives from FuUdevDevice, not FuUsbDevice -- and the former does not define a class->setup vfunc. Fixes https://github.com/fwupd/fwupd/issues/3548
This commit is contained in:
parent
51efc1c772
commit
2815a30274
@ -161,10 +161,6 @@ fu_elantp_hid_device_setup (FuDevice *device, GError **error)
|
||||
g_autofree gchar *version_bl = NULL;
|
||||
g_autofree gchar *version = NULL;
|
||||
|
||||
/* FuUsbDevice->setup */
|
||||
if (!FU_DEVICE_CLASS (fu_elantp_hid_device_parent_class)->setup (device, error))
|
||||
return FALSE;
|
||||
|
||||
/* get pattern */
|
||||
if (!fu_elantp_hid_device_read_cmd (self,
|
||||
ETP_CMD_I2C_GET_HID_ID,
|
||||
|
Loading…
Reference in New Issue
Block a user