uefi: Don't assert when run as non-root

This commit is contained in:
Richard Hughes 2018-08-13 11:29:37 +01:00
parent f78f66d479
commit 4721112601

View File

@ -407,7 +407,6 @@ fu_uefi_device_new_from_entry (const gchar *entry_path)
self->last_attempt_status = fu_uefi_read_file_as_uint64 (entry_path, "last_attempt_status"); self->last_attempt_status = fu_uefi_read_file_as_uint64 (entry_path, "last_attempt_status");
self->last_attempt_version = fu_uefi_read_file_as_uint64 (entry_path, "last_attempt_version"); self->last_attempt_version = fu_uefi_read_file_as_uint64 (entry_path, "last_attempt_version");
self->fw_version_lowest = fu_uefi_read_file_as_uint64 (entry_path, "lowest_supported_fw_version"); self->fw_version_lowest = fu_uefi_read_file_as_uint64 (entry_path, "lowest_supported_fw_version");
g_assert (self->fw_class != NULL);
/* the hardware instance is not in the ESRT table and we should really /* the hardware instance is not in the ESRT table and we should really
* write the EFI stub to query with FMP -- but we still have not ever * write the EFI stub to query with FMP -- but we still have not ever