mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 06:14:03 +00:00
elantp: fix missing initial value and remove duplicate code
This commit is contained in:
parent
72f19f2a12
commit
5ed675f93b
@ -477,6 +477,9 @@ fu_elantp_hid_device_detach(FuDevice *device, FuProgress *progress, GError **err
|
||||
} else {
|
||||
iap_ver = fu_memread_uint16(buf, G_LITTLE_ENDIAN);
|
||||
}
|
||||
|
||||
/* set the page size */
|
||||
self->fw_page_size = 64;
|
||||
if (ic_type >= 0x10) {
|
||||
if (iap_ver >= 1) {
|
||||
/* set the IAP type, presumably some kind of ABI */
|
||||
|
@ -327,7 +327,6 @@ fu_elantp_i2c_device_setup(FuDevice *device, GError **error)
|
||||
G_LITTLE_ENDIAN,
|
||||
error))
|
||||
return FALSE;
|
||||
fu_device_add_instance_u16(device, "MOD", self->module_id);
|
||||
|
||||
/* define the extra instance IDs */
|
||||
fu_device_add_instance_u16(device, "VEN", vid);
|
||||
|
Loading…
Reference in New Issue
Block a user