[dpdk-dev] [PATCH 5/5] net/sfc: remove void pointer cast
Zhiyong Yang
zhiyong.yang at intel.com
Mon Feb 26 09:11:03 CET 2018
Cc: arybchenko at solarflare.com
Signed-off-by: Zhiyong Yang <zhiyong.yang at intel.com>
---
drivers/net/sfc/sfc_flow.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c
index 93cdf8f4c..eb555c324 100644
--- a/drivers/net/sfc/sfc_flow.c
+++ b/drivers/net/sfc/sfc_flow.c
@@ -115,13 +115,13 @@ sfc_flow_parse_init(const struct rte_flow_item *item,
return -rte_errno;
}
- mask = (const uint8_t *)def_mask;
+ mask = def_mask;
} else {
- mask = (const uint8_t *)item->mask;
+ mask = item->mask;
}
- spec = (const uint8_t *)item->spec;
- last = (const uint8_t *)item->last;
+ spec = item->spec;
+ last = item->last;
if (spec == NULL)
goto exit;
--
2.13.3
More information about the dev
mailing list