ELOG: Avoid some preprocessor use
Change-Id: I8daf8868af2e8c2b07b0dda0eeaf863f2f550c59 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36648 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -125,11 +125,11 @@ void ec_mem_write(u8 addr, u8 data)
|
||||
|
||||
static void ene_kb3940q_log_events(void)
|
||||
{
|
||||
#if CONFIG(ELOG)
|
||||
u8 reason = ec_mem_read(EC_SHUTDOWN_REASON);
|
||||
if (reason)
|
||||
elog_add_event_byte(ELOG_TYPE_EC_SHUTDOWN, reason);
|
||||
#endif
|
||||
if (CONFIG(ELOG)) {
|
||||
u8 reason = ec_mem_read(EC_SHUTDOWN_REASON);
|
||||
if (reason)
|
||||
elog_add_event_byte(ELOG_TYPE_EC_SHUTDOWN, reason);
|
||||
}
|
||||
}
|
||||
|
||||
static void ene_kb3940q_init(struct device *dev)
|
||||
|
Reference in New Issue
Block a user