mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-15 15:43:13 +00:00
trivial: Never add missing FDT values as a HwID
This commit is contained in:
parent
23ae0b115c
commit
fd5d84a8f5
@ -47,6 +47,8 @@ fu_hwids_fdt_setup(FuContext *ctx, FuHwids *self, GError **error)
|
|||||||
for (guint i = 0; map[i].key != NULL; i++) {
|
for (guint i = 0; map[i].key != NULL; i++) {
|
||||||
g_autofree gchar *tmp = NULL;
|
g_autofree gchar *tmp = NULL;
|
||||||
fu_fdt_image_get_attr_str(FU_FDT_IMAGE(fdt_img), map[i].key, &tmp, NULL);
|
fu_fdt_image_get_attr_str(FU_FDT_IMAGE(fdt_img), map[i].key, &tmp, NULL);
|
||||||
|
if (tmp == NULL)
|
||||||
|
continue;
|
||||||
fu_hwids_add_value(self, map[i].hwid, tmp);
|
fu_hwids_add_value(self, map[i].hwid, tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user