app/test: remove useless loop for crypto

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
This commit is contained in:
Fiona Trahe 2016-10-06 18:34:27 +01:00 committed by Pablo de Lara
parent a831c318c5
commit 5cba7cbd9f

View File

@ -357,8 +357,8 @@ testsuite_setup(void)
return TEST_FAILED; return TEST_FAILED;
/* Set up all the qps on the first of the valid devices found */ /* Set up all the qps on the first of the valid devices found */
for (i = 0; i < 1; i++) {
dev_id = ts_params->valid_devs[i]; dev_id = ts_params->valid_devs[0];
rte_cryptodev_info_get(dev_id, &info); rte_cryptodev_info_get(dev_id, &info);
@ -384,11 +384,9 @@ testsuite_setup(void)
TEST_ASSERT_SUCCESS(rte_cryptodev_queue_pair_setup( TEST_ASSERT_SUCCESS(rte_cryptodev_queue_pair_setup(
dev_id, qp_id, &ts_params->qp_conf, dev_id, qp_id, &ts_params->qp_conf,
rte_cryptodev_socket_id(dev_id)), rte_cryptodev_socket_id(dev_id)),
"Failed to setup queue pair %u on " "Failed to setup queue pair %u on cryptodev %u",
"cryptodev %u",
qp_id, dev_id); qp_id, dev_id);
} }
}
return TEST_SUCCESS; return TEST_SUCCESS;
} }