From: Zhiyong Yang Date: Mon, 26 Feb 2018 08:11:03 +0000 (+0800) Subject: net/sfc: remove void pointer cast X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3b39cc76d9b4ed6fdcc42695336051da187cc875;p=dpdk.git net/sfc: remove void pointer cast Signed-off-by: Zhiyong Yang Reviewed-by: Ferruh Yigit Acked-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c index 93cdf8f4c0..eb555c324b 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;