summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-12 15:50:07 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-23 01:13:58 +0000
commit4c04e3d9be93c272d46dc6b28812a630bf4a8430 (patch)
treebcf021f6d25b03baf67fe3804f0f2a5030bc9b8f
parente5868bf9c19d654cc46727a564ed54d028cef935 (diff)
downloadchrome-ec-4c04e3d9be93c272d46dc6b28812a630bf4a8430.tar.gz
Revert "common: add `RETURN_ERROR` macro"
This reverts commit ebdc7e09a54041022d8276976ea6e59a87b95c29. BUG=b:200823466 TEST=make buildall -j Change-Id: I21f2f1beebcf9440bd2856922322cf068a2286e5 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3285824 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> (cherry picked from commit 52cc9b77b53f3866c9bafa849f2a95f5cfa102c5) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3297010
-rw-r--r--include/common.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/common.h b/include/common.h
index cd6aec2fa8..9dd375a2d8 100644
--- a/include/common.h
+++ b/include/common.h
@@ -178,13 +178,6 @@
#define TARGET_WITH_MARGIN(target, tenths_percent) \
(((target) * 1000) / (1000 + (tenths_percent)))
-/* Call a function, and return the error value unless it returns EC_SUCCESS. */
-#define RETURN_ERROR(fn) do { \
- int error = (fn); \
- if (error != EC_SUCCESS) \
- return error; \
-} while (0)
-
/* Include top-level configuration file */
#include "config.h"