From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id DBA2C4C96 for ; Mon, 26 Feb 2018 12:03:31 +0100 (CET) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1-us4.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 4BB2180005C; Mon, 26 Feb 2018 11:03:30 +0000 (UTC) Received: from [192.168.38.17] (84.52.114.114) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Mon, 26 Feb 2018 11:03:26 +0000 To: Zhiyong Yang , CC: References: <20180226081103.64154-1-zhiyong.yang@intel.com> <20180226081103.64154-6-zhiyong.yang@intel.com> From: Andrew Rybchenko Message-ID: <8cdef045-65b1-c4d0-d8bf-997940719530@solarflare.com> Date: Mon, 26 Feb 2018 14:03:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180226081103.64154-6-zhiyong.yang@intel.com> Content-Language: en-GB X-Originating-IP: [84.52.114.114] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.100.1062-23686.003 X-TM-AS-Result: No--11.697700-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-MDID: 1519643011-wWfADqsT45Dz Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH 5/5] net/sfc: remove void pointer cast X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2018 11:03:32 -0000 On 02/26/2018 11:11 AM, Zhiyong Yang wrote: > Cc: arybchenko@solarflare.com > Signed-off-by: Zhiyong Yang Acked-by: Andrew Rybchenko > --- > 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;