summaryrefslogtreecommitdiff
path: root/lib/librte_table/rte_table_hash_cuckoo.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-04-07 13:44:47 -0400
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-04-11 18:05:10 +0200
commitc5ba278876f70c274eb5a6c0c442c65e52b4b88e (patch)
tree7508dfae9c6407db9a80e6199af89e9fa9afcfb4 /lib/librte_table/rte_table_hash_cuckoo.c
parent3c32113a1aac6d399b1850cd24c42df71c1558cd (diff)
downloaddpdk-c5ba278876f70c274eb5a6c0c442c65e52b4b88e.zip
dpdk-c5ba278876f70c274eb5a6c0c442c65e52b4b88e.tar.gz
dpdk-c5ba278876f70c274eb5a6c0c442c65e52b4b88e.tar.xz
lib: remove unnecessary void cast
Remove unnecessary casts of void * pointers to a specific type. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'lib/librte_table/rte_table_hash_cuckoo.c')
-rw-r--r--lib/librte_table/rte_table_hash_cuckoo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/librte_table/rte_table_hash_cuckoo.c b/lib/librte_table/rte_table_hash_cuckoo.c
index ff7baee..da1597f 100644
--- a/lib/librte_table/rte_table_hash_cuckoo.c
+++ b/lib/librte_table/rte_table_hash_cuckoo.c
@@ -190,7 +190,7 @@ rte_table_hash_cuckoo_free(void *table) {
return -EINVAL;
}
- struct rte_table_hash *t = (struct rte_table_hash *)table;
+ struct rte_table_hash *t = table;
rte_hash_free(t->h_table);
rte_free(t);
@@ -218,7 +218,7 @@ rte_table_hash_cuckoo_entry_add(void *table, void *key, void *entry,
return -EINVAL;
}
- struct rte_table_hash *t = (struct rte_table_hash *)table;
+ struct rte_table_hash *t = table;
/* Find Existing entries */
pos = rte_hash_lookup(t->h_table, key);
@@ -268,7 +268,7 @@ rte_table_hash_cuckoo_entry_delete(void *table, void *key,
return -EINVAL;
}
- struct rte_table_hash *t = (struct rte_table_hash *)table;
+ struct rte_table_hash *t = table;
pos = rte_hash_del_key(t->h_table, key);
if (pos >= 0) {
@@ -359,7 +359,7 @@ static int
rte_table_hash_cuckoo_stats_read(void *table, struct rte_table_stats *stats,
int clear)
{
- struct rte_table_hash *t = (struct rte_table_hash *) table;
+ struct rte_table_hash *t = table;
if (stats != NULL)
memcpy(stats, &t->stats, sizeof(t->stats));