diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-12 15:50:07 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-18 04:55:55 +0000 |
commit | 52cc9b77b53f3866c9bafa849f2a95f5cfa102c5 (patch) | |
tree | 836fc0ab5266336b3aa7a8c6cee7ea163097b7ad | |
parent | 52318b441a55f43e93598665c01b797b9c25c877 (diff) | |
download | chrome-ec-52cc9b77b53f3866c9bafa849f2a95f5cfa102c5.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>
-rw-r--r-- | include/common.h | 7 |
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" |