ut/crypto: remove g_test_dequeued_ops

The buffers are allocated and freed inside the
test suite, but aren't used for anything.

Change-Id: I341dc3315d20d15f7b571e9d18438c98a74def11
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/443589
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Darek Stojaczyk 2019-02-06 16:19:10 +01:00 committed by Jim Harris
parent f22de50bee
commit a182010194

View File

@ -115,7 +115,6 @@ struct device_qp g_dev_qp;
#define MAX_TEST_BLOCKS 8192
struct rte_crypto_op *g_test_crypto_ops[MAX_TEST_BLOCKS];
struct rte_crypto_op *g_test_dequeued_ops[MAX_TEST_BLOCKS];
struct rte_crypto_op *g_test_dev_full_ops[MAX_TEST_BLOCKS];
/* These globals are externs in our local rte_ header files so we can control
@ -322,8 +321,6 @@ test_setup(void)
for (i = 0; i < MAX_TEST_BLOCKS; i++) {
g_test_crypto_ops[i] = calloc(1, sizeof(struct rte_crypto_op) +
sizeof(struct rte_crypto_sym_op));
g_test_dequeued_ops[i] = calloc(1, sizeof(struct rte_crypto_op) +
sizeof(struct rte_crypto_sym_op));
}
return 0;
}
@ -338,7 +335,6 @@ test_cleanup(void)
spdk_mempool_free(g_mbuf_mp);
for (i = 0; i < MAX_TEST_BLOCKS; i++) {
free(g_test_crypto_ops[i]);
free(g_test_dequeued_ops[i]);
}
free(g_bdev_io->u.bdev.iovs);
free(g_bdev_io);