From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by dpdk.org (Postfix) with ESMTP id CD5AECF90 for ; Fri, 7 Apr 2017 19:45:09 +0200 (CEST) Received: by mail-io0-f179.google.com with SMTP id l7so53842631ioe.3 for ; Fri, 07 Apr 2017 10:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NKK06m6j8DaxWvFvfASao8u2QvhmyhS1dkfw8TQgO8w=; b=Oy5ADCLDEKWYjJEWnnfG51BEM80IkaWMfAHU7v7jdR6vWk5n6VLu5JqQRmA2eVWgr1 +yIIMW2NLNjbOdTWJI8es8YIHoRWvg3QqGvjhUr4BUv8p7jvrnbC99npkbquZ/bPwXLk siBmS5ZQtfnmoP9FtBSprA9FQ3f+yC1aF4kKGNZ33XocJ3La+E2xFUH5jamN9wHpf0br 6iHy6h+eRXOCQSzqekEmDq/k9zoObOEjdr/b15P/zRCVdJ7nj5BPnqN3qHiEWLnd1GMs XoVAY3QCKXKvHy0S5EWZT6PDTeXk7FWtCqNr7YccDbdafOBahTQUVNovtMHFBxuxrAIJ h7tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NKK06m6j8DaxWvFvfASao8u2QvhmyhS1dkfw8TQgO8w=; b=ETbw2mBrJUpFTo6KjcIkF+VRe09MqdX7L4GaQEre3wsgtrf/tDdt5hD0PEDV29/jNP a+Q36YyGB7GqfyArYuScmk+w2nu9o6nnpi2Vkl74rOiMftAwZVWlB3pWbp/KUH6MTpM0 NtOYFkqJmKHIxAoYiIl+r1AFR6E3vGPAIQO+cwQ35cws/REH3GpsIRjPcj2IgZ94WLbE Kmgdj9xaRGYqKlGi6x7erXKDUlEGw47mD8Cg1daEVHa3FMaFX1iaLe8fuM/5cA8ORlZk rMStC8K4X7VJCiDW8W9/ocIKZwC2GQQna+/ARj4exeg4k964sD9mJ04uCFHj6DKNiKuy SKXg== X-Gm-Message-State: AFeK/H1+S5XRvmzLsU9GMmAznbVAOFoDz6qhvKtGRrWsEy9NorxyEuOotwh13AI5OQvurg== X-Received: by 10.107.6.212 with SMTP id f81mr39106145ioi.132.1491587108874; Fri, 07 Apr 2017 10:45:08 -0700 (PDT) Received: from plumbers-lap.home.lan ([66.171.166.114]) by smtp.gmail.com with ESMTPSA id s40sm4649675ite.18.2017.04.07.10.45.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 10:45:08 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 7 Apr 2017 13:44:52 -0400 Message-Id: <20170407174457.4180-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170407174457.4180-1-stephen@networkplumber.org> References: <20170407174457.4180-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 06/11] acl: remove unnecessary cast of void pointer 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: Fri, 07 Apr 2017 17:45:10 -0000 Remove unnecessary casts of void * pointers to a specfic type. Signed-off-by: Stephen Hemminger --- lib/librte_acl/acl_bld.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c index 9e5ad1c63..0768cd3bf 100644 --- a/lib/librte_acl/acl_bld.c +++ b/lib/librte_acl/acl_bld.c @@ -830,8 +830,8 @@ acl_gen_range_trie(struct acl_build_context *context, { int32_t n; struct rte_acl_node *root; - const uint8_t *lo = (const uint8_t *)min; - const uint8_t *hi = (const uint8_t *)max; + const uint8_t *lo = min; + const uint8_t *hi = max; *pend = acl_alloc_node(context, level+size); root = acl_alloc_node(context, level++); @@ -886,8 +886,8 @@ acl_gen_mask_trie(struct acl_build_context *context, struct rte_acl_node *root; struct rte_acl_node *node, *prev; struct rte_acl_bitset bits; - const uint8_t *val = (const uint8_t *)value; - const uint8_t *msk = (const uint8_t *)mask; + const uint8_t *val = value; + const uint8_t *msk = mask; root = acl_alloc_node(context, level++); prev = root; -- 2.11.0