git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: remove unneeded casts
[dpdk.git]
/
app
/
test
/
test_hash_perf.c
diff --git
a/app/test/test_hash_perf.c
b/app/test/test_hash_perf.c
index
05a88ec
..
842b218
100644
(file)
--- a/
app/test/test_hash_perf.c
+++ b/
app/test/test_hash_perf.c
@@
-448,13
+448,13
@@
run_single_tbl_perf_test(const struct rte_hash *h, hash_operation func,
/* Initialise */
num_buckets = params->entries / params->bucket_entries;
/* Initialise */
num_buckets = params->entries / params->bucket_entries;
- key =
(uint8_t *)
rte_zmalloc("hash key",
- params->key_len * sizeof(uint8_t), 16);
+ key = rte_zmalloc("hash key",
+
params->key_len * sizeof(uint8_t), 16);
if (key == NULL)
return -1;
if (key == NULL)
return -1;
- bucket_occupancies =
(uint32_t *) rte_zm
alloc("bucket occupancies",
-
num_buckets *
sizeof(uint32_t), 16);
+ bucket_occupancies =
rte_c
alloc("bucket occupancies",
+
num_buckets,
sizeof(uint32_t), 16);
if (bucket_occupancies == NULL) {
rte_free(key);
return -1;
if (bucket_occupancies == NULL) {
rte_free(key);
return -1;