net/sfc: remove void pointer cast
authorZhiyong Yang <zhiyong.yang@intel.com>
Mon, 26 Feb 2018 08:11:03 +0000 (16:11 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:43 +0000 (14:08 +0200)
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_flow.c

index 93cdf8f..eb555c3 100644 (file)
@@ -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;