Cc: arybche...@solarflare.com 
Signed-off-by: Zhiyong Yang <zhiyong.y...@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

Reply via email to