From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by dpdk.org (Postfix) with ESMTP id C9B1ECFD8 for ; Fri, 7 Apr 2017 19:45:14 +0200 (CEST) Received: by mail-io0-f174.google.com with SMTP id l7so53844027ioe.3 for ; Fri, 07 Apr 2017 10:45:14 -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=xabD5i6cZ1BvFteGVuefNiT9/VGMrRK6DkDdv+Y0y3k=; b=PMr72+jQhD65fI4xDs6xbfYaKLAMMaOEHV1opAxNUFizC0eA9OXJpApwBLC11Oic+3 s1uluT/2FG71tMKBJeCTJK8H7EzT33NrNEN0NedcvCFk/g8NpuBkIZeB2B62aTPOB8Cr ONY1upnTuu74smhdfC9CaBNXZc2n07Dg4TFPrSu/kT0Qg7dQ1qOkcw71fmqCJuW2mBRB og+d3Sjk21zwgvOKruxslfaglyPpnkcwsJfKyrndnIbm9gw3h4nZFnMu7H56lV5C6IYr fX4dUYlyK0Z8Z75xApo7jtHU9rKc0JUwDAyO39wJZQ/10l7alKW+74vyoHXU4sAhcPqZ 4bFw== 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=xabD5i6cZ1BvFteGVuefNiT9/VGMrRK6DkDdv+Y0y3k=; b=H/FKa15/7dmE5gmIDG/WgKxP/FiYRPtiOHMC9QYayIKcMnQNfzpxOZcqLPmtOS621Q Pc8rIJNjsijDDrJzbkoah8cfyZJTh0GcI98TM6QJb1PLufa2tmTLgYx9uAHhWXeU6qxl ZJ4JFHI0XTwYx0e52iDmA19C5qPhVYCpLja8xwENBy5u/8FeSJ9jYaq6W5XX5M3D2213 TllyPZgVCsOOJK/kD3LovLuf2Ty5HRiEyk2KMP9i/bOlnjmEsHl/fdmmqhR5ccucFAfH D3QGgQYxWYAwYIar+wfZ7OoF5YwqSusTIQwrtxDQPqm9DZnPptbNhY22U0LMjNX4E3fU 0Rtg== X-Gm-Message-State: AFeK/H3oPQlkJny0ILkhSuzxG/L1jXpk4olawtmeRn/lg/S7W8TH0exTeSm04axcJh9Nkg== X-Received: by 10.107.46.24 with SMTP id i24mr45059899ioo.84.1491587114227; Fri, 07 Apr 2017 10:45:14 -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.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 10:45:13 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 7 Apr 2017 13:44:56 -0400 Message-Id: <20170407174457.4180-11-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 10/11] mempool: 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:15 -0000 Remove unnecessary casts of void * pointers to a specfic type. Signed-off-by: Stephen Hemminger --- lib/librte_mempool/rte_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index ef7d3d15b..f65310f60 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -1044,7 +1044,7 @@ void rte_mempool_check_cookies(const struct rte_mempool *mp, /* Force to drop the "const" attribute. This is done only when * DEBUG is enabled */ tmp = (void *) obj_table_const; - obj_table = (void **) tmp; + obj_table = tmp; while (n--) { obj = obj_table[n]; -- 2.11.0