[dpdk-dev,10/11] mempool: remove unnecessary cast of void pointer
Checks
Commit Message
Remove unnecessary casts of void * pointers to a specfic type.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/librte_mempool/rte_mempool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1044,7 +1044,7 @@ void rte_mempool_check_cookies(const struct rte_mempool *mp,
/* Force to drop the "const" attribute. This is done only when
* DEBUG is enabled */
tmp = (void *) obj_table_const;
- obj_table = (void **) tmp;
+ obj_table = tmp;
while (n--) {
obj = obj_table[n];