summaryrefslogtreecommitdiff
path: root/firmware/lib/tpm_lite/tlcl.c
diff options
context:
space:
mode:
authorMattias Nissler <mnissler@chromium.org>2018-02-23 12:04:23 +0100
committerchrome-bot <chrome-bot@chromium.org>2018-04-09 05:52:55 -0700
commit13fcffe754b3b451dea54b5079fe9b7e30d685d1 (patch)
tree6ca568aed95aa7bda6bc163817f191f715560005 /firmware/lib/tpm_lite/tlcl.c
parent96766893f35e25c0dffe9e7961c5f74728479772 (diff)
downloadvboot-13fcffe754b3b451dea54b5079fe9b7e30d685d1.tar.gz
tpm_lite: Drop FOR_TEST for tlcl.c
firmware/lib/tpm_lite.c turned off CHROMEOS_ENVIRONMENT if FOR_TEST is enabled, resulting in a situation where code specific to CHROMEOS_ENVIRONMENT couldn't be tested. Fortunately, AFAICS tlcl_tests does not use FOR_TEST for anything useful any longer, so just drop it. BRANCH=None BUG=None TEST=FEATURES=test emerge-$BOARD -v1 vboot_reference Change-Id: I7f08ef6d2343bc60a6d2982c3cc7bae0507d94d5 Reviewed-on: https://chromium-review.googlesource.com/937703 Commit-Ready: Mattias Nissler <mnissler@chromium.org> Tested-by: Mattias Nissler <mnissler@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/lib/tpm_lite/tlcl.c')
-rw-r--r--firmware/lib/tpm_lite/tlcl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/firmware/lib/tpm_lite/tlcl.c b/firmware/lib/tpm_lite/tlcl.c
index 6f71f2bc..587a1726 100644
--- a/firmware/lib/tpm_lite/tlcl.c
+++ b/firmware/lib/tpm_lite/tlcl.c
@@ -24,11 +24,6 @@
#include "utility.h"
#include "vboot_api.h"
-#ifdef FOR_TEST
-/* Allow unit testing implementation of TlclSendReceive() */
-#undef CHROMEOS_ENVIRONMENT
-#endif
-
/* Sets the size field of a TPM command. */
static inline void SetTpmCommandSize(uint8_t* buffer, uint32_t size)
{