trivial: Never add missing FDT values as a HwID

This commit is contained in:
Richard Hughes 2023-02-14 09:49:40 +00:00
parent 23ae0b115c
commit fd5d84a8f5

View File

@ -47,6 +47,8 @@ fu_hwids_fdt_setup(FuContext *ctx, FuHwids *self, GError **error)
for (guint i = 0; map[i].key != NULL; i++) {
g_autofree gchar *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);
}