aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c6
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c
index 8d8a92009..79c4f3a3f 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c
+++ b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c
@@ -24,7 +24,7 @@
#include <string.h>
#include "hal.h"
-#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
+#if HAL_USE_CRY || defined(__DOXYGEN__)
#include "sama_crypto_lld.h"
/*===========================================================================*/
@@ -1096,8 +1096,6 @@ cryerror_t cry_lld_decrypt_DES_CBC(CRYDriver *cryp, crykey_t key_id,
return ret;
}
-
-
-#endif /* HAL_USE_CRY == TRUE */
+#endif /* HAL_USE_CRY */
/** @} */
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h
index 135ac600c..d9ef51f30 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h
+++ b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h
@@ -25,7 +25,7 @@
#ifndef HAL_CRYPTO_LLD_H
#define HAL_CRYPTO_LLD_H
-#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
+#if HAL_USE_CRY || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -292,7 +292,7 @@ extern "C" {
}
#endif
-#endif /* HAL_USE_CRY == TRUE */
+#endif /* HAL_USE_CRY */
#endif /* HAL_CRYPTO_LLD_H */