summaryrefslogtreecommitdiffstats
path: root/src/drivers/elog
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-01-23 12:04:43 +0100
committerNico Huber <nico.h@gmx.de>2019-01-27 11:14:26 +0000
commitb58e99dfa56e1cf02e5bc0720872836bf8bded93 (patch)
tree8e2825eb2b33ca9a32b53613254ca85a0af51c8e /src/drivers/elog
parentd3fa7fa5d810688cdcdb7c34b7f13ae1350a0f84 (diff)
downloadcoreboot-b58e99dfa56e1cf02e5bc0720872836bf8bded93.tar.gz
coreboot-b58e99dfa56e1cf02e5bc0720872836bf8bded93.tar.bz2
coreboot-b58e99dfa56e1cf02e5bc0720872836bf8bded93.zip
src: Fix the warning "type 'hex' are always defined"
This is spotted using "./util/lint/kconfig_lint" While at it, do the check in C and not the preprocessor. Change-Id: Icfda267936a23d9d14832116d67571f42f685906 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/31050 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/drivers/elog')
-rw-r--r--src/drivers/elog/boot_count.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/elog/boot_count.c b/src/drivers/elog/boot_count.c
index c4373ee44ab7..fd86f39065f4 100644
--- a/src/drivers/elog/boot_count.c
+++ b/src/drivers/elog/boot_count.c
@@ -30,7 +30,7 @@
# include "option_table.h"
# define BOOT_COUNT_CMOS_OFFSET (CMOS_VSTART_boot_count_offset >> 3)
#else
-# if defined(CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET) && CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET
+# if (CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET != 0)
# define BOOT_COUNT_CMOS_OFFSET CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET
# else
# error "Must configure CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET"