From a269059c192811be0ec56120398ad31917c7a18a Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Wed, 18 Aug 2021 18:09:34 -0600 Subject: zephyr: drop IS_ZEPHYR_VERSION macro As noted in the bug, this macro is an antipattern. Drop it. BUG=b:197159539 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal Change-Id: I2fa6515149ff31ae650ed4f3fdc65b111f62c5b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3104788 Reviewed-by: Keith Short Commit-Queue: Keith Short --- include/cros_version.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include') diff --git a/include/cros_version.h b/include/cros_version.h index 9cbfaec179..0d3e777dc5 100644 --- a/include/cros_version.h +++ b/include/cros_version.h @@ -11,15 +11,6 @@ #include "common.h" #include "system.h" -#ifdef CONFIG_ZEPHYR -#include "version.h" - -#define IS_ZEPHYR_VERSION(major, minor) \ - (KERNEL_VERSION_MAJOR == (major) && KERNEL_VERSION_MINOR == (minor)) -#else -#define IS_ZEPHYR_VERSION(major, minor) false -#endif /* CONFIG_ZEPHYR */ - #define CROS_EC_IMAGE_DATA_COOKIE1 0xce778899 #define CROS_EC_IMAGE_DATA_COOKIE2 0xceaabbdd -- cgit v1.2.1