From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 09BDA45844; Thu, 22 Aug 2024 09:41:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74B9542E7C; Thu, 22 Aug 2024 09:41:27 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id D344042E73 for ; Thu, 22 Aug 2024 09:41:21 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47M1U4Gv009927; Thu, 22 Aug 2024 00:41:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=4 hXPHSWRuzysFIuTUpm6zM0ldwVHGyZbhEvkJPr6jC8=; b=P46oBcGs7XXKbGXNF wIMXyViI7ozvu3HmQW2vWLR/AjxtEEwSQazIWPkt3oT/t9TT1aOBxNqFBV3xZJ5y ZA0Df86un/wL9BXjNUypUJlK/5Q+1WoRWQbuh9Idpx1+s20tlAeOpoc7fzP9vwfs 1CLvbvDvdTpkVQ1HiTRjFsQedPXaPeq1HPz3V5II/tWX8GpF+mfYvpYoJilIxA2i 6jFEBrRF2NAe433G9VcNyTZnehvPLyKeufC4NHKm1LmVbKTbdMz2k9smKzMWxh2d XfiGCnWXiKyStJnmHiGNBHHG3i7TbcRV1EMWREYLHgzhV5mpQ0ajphqggCAfn+9F beEkg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 415uqns0yd-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Aug 2024 00:41:20 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 22 Aug 2024 00:41:19 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 22 Aug 2024 00:41:19 -0700 Received: from anoobj2204.marvell.com (unknown [10.28.34.118]) by maili.marvell.com (Postfix) with ESMTP id 6960B5B6C60; Thu, 22 Aug 2024 00:17:02 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Fan Zhang CC: Hemant Agrawal , Jerin Jacob , Aakash Sasidharan , Tejasree Kondoj , Vidya Sagar Velumuri , Subject: [PATCH 3/6] test/crypto: remove redefinition Date: Thu, 22 Aug 2024 07:16:31 +0000 Message-ID: <20240822071651.2403105-4-anoobj@marvell.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240822071651.2403105-1-anoobj@marvell.com> References: <20240822071651.2403105-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 0ueWI8UGj1F4RmkCUyQE-wrTP4KXWORB X-Proofpoint-ORIG-GUID: 0ueWI8UGj1F4RmkCUyQE-wrTP4KXWORB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-22_03,2024-08-19_03,2024-05-17_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Remove redefinition of TRUE & FALSE. These are defined by stdbool. Can use the same. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 5 +++-- app/test/test_cryptodev.h | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 5444d82c50..169e2f3b48 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -3,6 +3,7 @@ * Copyright 2020 NXP */ +#include #include #include @@ -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; diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h index c322f10b94..e00c9866c3 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -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) -- 2.45.2