mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 11:09:28 +00:00
synaptics-cxaudio: Use fu_strtobool() to parse TRUE and FALSE
PVS: Converting type 'guint64' to type 'gboolean' can lead to a loss of high-order bits.
This commit is contained in:
parent
f49d5ed10c
commit
a74e383f8d
@ -819,12 +819,8 @@ fu_synaptics_cxaudio_device_set_quirk_kv(FuDevice *device,
|
||||
self->chip_id_base = tmp;
|
||||
return TRUE;
|
||||
}
|
||||
if (g_strcmp0(key, "CxaudioSoftwareReset") == 0) {
|
||||
if (!fu_strtoull(value, &tmp, 0, G_MAXUINT32, error))
|
||||
return FALSE;
|
||||
self->sw_reset_supported = tmp;
|
||||
return TRUE;
|
||||
}
|
||||
if (g_strcmp0(key, "CxaudioSoftwareReset") == 0)
|
||||
return fu_strtobool(value, &self->sw_reset_supported, error);
|
||||
if (g_strcmp0(key, "CxaudioPatch1ValidAddr") == 0) {
|
||||
if (!fu_strtoull(value, &tmp, 0, G_MAXUINT32, error))
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user