summaryrefslogtreecommitdiff
path: root/firmware/lib/rollback_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/lib/rollback_index.c')
-rw-r--r--firmware/lib/rollback_index.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/firmware/lib/rollback_index.c b/firmware/lib/rollback_index.c
index 004d3ba0..b273d23d 100644
--- a/firmware/lib/rollback_index.c
+++ b/firmware/lib/rollback_index.c
@@ -14,17 +14,13 @@
#include "tss_constants.h"
#include "vboot_api.h"
-#ifndef offsetof
-#define offsetof(A,B) __builtin_offsetof(A,B)
-#endif
-
-#define RETURN_ON_FAILURE(tpm_command) do { \
- uint32_t result_; \
- if ((result_ = (tpm_command)) != TPM_SUCCESS) { \
+#define RETURN_ON_FAILURE(tpm_command) do { \
+ uint32_t result_; \
+ if ((result_ = (tpm_command)) != TPM_SUCCESS) { \
VB2_DEBUG("Rollback: %08x returned by " #tpm_command \
- "\n", (int)result_); \
- return result_; \
- } \
+ "\n", (int)result_); \
+ return result_; \
+ } \
} while (0)
#define PRINT_BYTES(title, value) do { \