mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-26 04:46:55 +00:00
acpi-facp: Fix some NULL/FALSE confusion
This commit is contained in:
parent
7bca1b27b4
commit
1411b8056b
@ -30,7 +30,7 @@ fu_acpi_facp_new (GBytes *blob, GError **error)
|
|||||||
|
|
||||||
/* parse table */
|
/* parse table */
|
||||||
if (!fu_common_read_uint32_safe (buf, bufsz, 0x70, &flags, G_LITTLE_ENDIAN, error))
|
if (!fu_common_read_uint32_safe (buf, bufsz, 0x70, &flags, G_LITTLE_ENDIAN, error))
|
||||||
return FALSE;
|
return NULL;
|
||||||
g_debug ("Flags: 0x%04x", flags);
|
g_debug ("Flags: 0x%04x", flags);
|
||||||
self->get_s2i = (flags & LOW_POWER_S0_IDLE_CAPABLE) > 0;
|
self->get_s2i = (flags & LOW_POWER_S0_IDLE_CAPABLE) > 0;
|
||||||
return self;
|
return self;
|
||||||
|
Loading…
Reference in New Issue
Block a user