From a182010194d4999796b143baba531bde1135746a Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Wed, 6 Feb 2019 16:19:10 +0100 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/c/443589 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto --- test/unit/lib/bdev/crypto.c/crypto_ut.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/unit/lib/bdev/crypto.c/crypto_ut.c b/test/unit/lib/bdev/crypto.c/crypto_ut.c index 72edebc46..c5c16c638 100644 --- a/test/unit/lib/bdev/crypto.c/crypto_ut.c +++ b/test/unit/lib/bdev/crypto.c/crypto_ut.c @@ -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);