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:
Richard Hughes 2021-08-05 11:46:50 +01:00
parent 51efc1c772
commit 2815a30274

View File

@ -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,