elog: Only print TYPE_BOOT on S3-resume if CONFIG_ELOG_BOOT_COUNT
Previously, we were unconditionally adding a TYPE_BOOT message to the ELOG
on every boot (even S3 resume) if CONFIG_ELOG_BOOT_COUNT was disabled.
Now that boot_count_read() returns 0 for the !CONFIG_ELOG_BOOT_COUNT
case, the code becomes a bit simpler.
Signed-off-by: Daniel Kurtz <firstname.lastname@example.org>
Reviewed-by: Martin Roth <email@example.com>
Reviewed-by: Aaron Durbin <firstname.lastname@example.org>
Reviewed-by: Simon Glass <email@example.com>
Reviewed-by: Paul Menzel <firstname.lastname@example.org>
Tested-by: build bot (Jenkins) <email@example.com>
1 file changed