[3/6] test/crypto: remove redefinition
Checks
Commit Message
Remove redefinition of TRUE & FALSE. These are defined by stdbool. Can
use the same.
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
app/test/test_cryptodev.c | 5 +++--
app/test/test_cryptodev.h | 3 ---
2 files changed, 3 insertions(+), 5 deletions(-)
@@ -3,6 +3,7 @@
* Copyright 2020 NXP
*/
+#include <stdbool.h>
#include <time.h>
#include <rte_common.h>
@@ -796,7 +797,7 @@ check_capabilities_supported(enum rte_crypto_sym_xform_type type,
const int *algs, uint16_t num_algs)
{
uint8_t dev_id = testsuite_params.valid_devs[0];
- bool some_alg_supported = FALSE;
+ bool some_alg_supported = false;
uint16_t i;
for (i = 0; i < num_algs && !some_alg_supported; i++) {
@@ -805,7 +806,7 @@ check_capabilities_supported(enum rte_crypto_sym_xform_type type,
};
if (rte_cryptodev_sym_capability_get(dev_id,
&alg) != NULL)
- some_alg_supported = TRUE;
+ some_alg_supported = true;
}
if (!some_alg_supported)
return TEST_SKIPPED;
@@ -8,9 +8,6 @@
#define HEX_DUMP 0
-#define FALSE 0
-#define TRUE 1
-
#define MAX_NUM_OPS_INFLIGHT (4096)
#define MIN_NUM_OPS_INFLIGHT (128)
#define DEFAULT_NUM_OPS_INFLIGHT (128)