From 1b529b0141cc7c87cadf9dc54f55d425a11f8219 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Mon, 26 Sep 2016 23:13:20 +0100 Subject: [PATCH] app/test: remove unnecessary conditional for crypto Regardless the result of the conditional, the true and false statements were the same, so the conditional can be removed. Signed-off-by: Pablo de Lara Acked-by: Fiona Trahe --- app/test/test_cryptodev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 23cf0161b4..62a192e8f8 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -341,10 +341,7 @@ ut_setup(void) /* Reconfigure device to default parameters */ ts_params->conf.nb_queue_pairs = DEFAULT_NUM_QPS_PER_QAT_DEVICE; ts_params->conf.socket_id = SOCKET_ID_ANY; - ts_params->conf.session_mp.nb_objs = - (gbl_cryptodev_type == RTE_CRYPTODEV_QAT_SYM_PMD) ? - DEFAULT_NUM_OPS_INFLIGHT : - DEFAULT_NUM_OPS_INFLIGHT; + ts_params->conf.session_mp.nb_objs = DEFAULT_NUM_OPS_INFLIGHT; TEST_ASSERT_SUCCESS(rte_cryptodev_configure(ts_params->valid_devs[0], &ts_params->conf), -- 2.20.1