summaryrefslogtreecommitdiff
path: root/lib/librte_acl
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_acl
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_acl')
-rw-r--r--lib/librte_acl/acl_bld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c
index 9e5ad1c..0768cd3 100644
--- a/lib/librte_acl/acl_bld.c
+++ b/lib/librte_acl/acl_bld.c
@@ -830,8 +830,8 @@ acl_gen_range_trie(struct acl_build_context *context,
{
int32_t n;
struct rte_acl_node *root;
- const uint8_t *lo = (const uint8_t *)min;
- const uint8_t *hi = (const uint8_t *)max;
+ const uint8_t *lo = min;
+ const uint8_t *hi = max;
*pend = acl_alloc_node(context, level+size);
root = acl_alloc_node(context, level++);
@@ -886,8 +886,8 @@ acl_gen_mask_trie(struct acl_build_context *context,
struct rte_acl_node *root;
struct rte_acl_node *node, *prev;
struct rte_acl_bitset bits;
- const uint8_t *val = (const uint8_t *)value;
- const uint8_t *msk = (const uint8_t *)mask;
+ const uint8_t *val = value;
+ const uint8_t *msk = mask;
root = acl_alloc_node(context, level++);
prev = root;