mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 04:05:40 +00:00
genesys: usbhub: Remove unnecessary local
This commit is contained in:
parent
b2f3e57418
commit
79228d8b7d
@ -750,7 +750,6 @@ fu_genesys_usbhub_device_setup(FuDevice *device, GError **error)
|
|||||||
}
|
}
|
||||||
if (self->static_ts.tool_string_version != 0xff) {
|
if (self->static_ts.tool_string_version != 0xff) {
|
||||||
gchar rev[3] = {0};
|
gchar rev[3] = {0};
|
||||||
guint64 tmp;
|
|
||||||
|
|
||||||
if (memcmp(self->static_ts.mask_project_ic_type, "3523", 4) == 0) {
|
if (memcmp(self->static_ts.mask_project_ic_type, "3523", 4) == 0) {
|
||||||
self->isp_model = ISP_MODEL_HUB_GL3523;
|
self->isp_model = ISP_MODEL_HUB_GL3523;
|
||||||
@ -768,8 +767,7 @@ fu_genesys_usbhub_device_setup(FuDevice *device, GError **error)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
memcpy(rev, &self->static_ts.mask_project_ic_type[4], 2);
|
memcpy(rev, &self->static_ts.mask_project_ic_type[4], 2);
|
||||||
tmp = fu_common_strtoull(rev);
|
self->isp_revision = fu_common_strtoull(rev);
|
||||||
self->isp_revision = tmp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic_buf =
|
dynamic_buf =
|
||||||
|
Loading…
Reference in New Issue
Block a user