aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/elog/elog_internal.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-08-05 15:24:33 -0500
committerMartin Roth <martinroth@google.com>2016-08-09 17:49:58 +0200
commit9d130a9e1038e406c4be74a70a99f5530ef5c55d (patch)
tree395bb2fe51fe9c3ca3527486f38cc0c96866651b /src/drivers/elog/elog_internal.h
parent0284f62db2e656044ba1ed39ddc3ab4ae89509af (diff)
drivers/elog: remove unnecessary global state
There were 3 variables indicating the state of the event log region. However, there's no need to keep track of those individually. The only thing required is to know is if elog_scan_flash() failed. There's no other tracking required beyond that. BUG=chrome-os-partner:55932 Change-Id: I88ad32091d3c37966a2ac6272f8ad95bcc8c4270 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16100 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/drivers/elog/elog_internal.h')
-rw-r--r--src/drivers/elog/elog_internal.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/drivers/elog/elog_internal.h b/src/drivers/elog/elog_internal.h
index ef21bf0f3f..a09bbefe8d 100644
--- a/src/drivers/elog/elog_internal.h
+++ b/src/drivers/elog/elog_internal.h
@@ -45,20 +45,4 @@ struct event_header {
/* SMBIOS Type 15 related constants */
#define ELOG_HEADER_TYPE_OEM 0x88
-typedef enum elog_area_state {
- ELOG_AREA_UNDEFINED, /* Initial boot strap state */
- ELOG_AREA_EMPTY, /* Entire area is empty */
- ELOG_AREA_HAS_CONTENT, /* Area has some content */
-} elog_area_state;
-
-typedef enum elog_header_state {
- ELOG_HEADER_INVALID,
- ELOG_HEADER_VALID,
-} elog_header_state;
-
-typedef enum elog_event_buffer_state {
- ELOG_EVENT_BUFFER_OK,
- ELOG_EVENT_BUFFER_CORRUPTED,
-} elog_event_buffer_state;
-
#endif /* ELOG_INTERNAL_H_ */