From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 46F74A045E for ; Wed, 29 May 2019 21:15:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7E0FA1B958; Wed, 29 May 2019 21:15:09 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 6D24A1B94A for ; Wed, 29 May 2019 21:15:05 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id d30so452833pgm.7 for ; Wed, 29 May 2019 12:15:05 -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 :mime-version:content-transfer-encoding; bh=/WyC+7OA5STF4b9iqyxFBYuEJjkONb2wmxa+LHXlZ7M=; b=wFEuuGZ/7cShHqIfubm+aTJnp+Y3Wf0B1Y0kxwwpjX357zvQIvT0LDFwCDs3VtfhR5 ReptRIDoHFKL9rTylEaPK7FlpenmxXy4VW69zcR9m+OKowo6vY+6q0oCaF4Do6CW+/1w XSwqf8/lqqrQK38ljFAZZ+3RUykwZsqyeHnSlKlsTUbjYro7h2N/hPfnYPppg36iPaqw wu3qW1NHJ7Nw8OApI3AHLlRaxEFtBGFrNSb1ma/7dNrgG7wXQ21MwFoLH8eJhgNES4K/ xRtypwd8cu5q3GyKliVbsGJ09w4+UG8wtjUPtdxwJAqXjts92JYoLeENFPeWziKZgrhv OzdQ== 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:mime-version:content-transfer-encoding; bh=/WyC+7OA5STF4b9iqyxFBYuEJjkONb2wmxa+LHXlZ7M=; b=AcnXUX40NTf1KvxkvQBafN6XTJx4U+Pq4DMrmZrXrif/lR2jHcPtHEEUTBfqQ9t8pU r8l2FK5xPyP0IAS5FsD8xfy3mzhrtwpL75ZebcqD1o3KgUag5APKVbxHj9ipmhExWTHF OSpvXnUodpVmd4g12+HX95/r2JNSVmg+RKk+07tGZ/ab9Tzn54beFCqTZ+NAwVe7it2d RZM3pTrZKzueCNBO2CjPMAXA4NcQNcaLozhRT6WB26O2vJww7MuR9t9B5KhaZfaLmFma Lkrjs5gE2gBtNBI2uhYBpTEIgJ8G+Ld/8ez0oACrr1VKx/FpuZFA0RUI/FfYu6FbPWCe 1vEw== X-Gm-Message-State: APjAAAU1iYP+D2ySXJaYm/BTULaNw1fkGCk0i14CHyq0QLaH1Lx2KJDQ EQXaSWSJJUctEeDUuM4vCx42q8FoXVQ= X-Google-Smtp-Source: APXvYqyAVHd/Z+mIGcPIP59LfFOp4hPa68F70n/0R0YHXqpYZOSjQmlRS7m1/TTOln1T3HNCaPkSjA== X-Received: by 2002:aa7:8a87:: with SMTP id a7mr114268090pfc.53.1559157304305; Wed, 29 May 2019 12:15:04 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t18sm142943pgm.69.2019.05.29.12.15.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 12:15:03 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 29 May 2019 12:14:50 -0700 Message-Id: <20190529191501.19053-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190529191501.19053-1-stephen@networkplumber.org> References: <20190529191501.19053-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 01/12] net/atlantic: remove unnecessary 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The device private pointer (dev_private) is of type void * therefore no cast is necessary in C. Signed-off-by: Stephen Hemminger --- drivers/net/atlantic/atl_ethdev.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/net/atlantic/atl_ethdev.c b/drivers/net/atlantic/atl_ethdev.c index d110e351ec03..fdc0a7f2db96 100644 --- a/drivers/net/atlantic/atl_ethdev.c +++ b/drivers/net/atlantic/atl_ethdev.c @@ -371,8 +371,7 @@ atl_disable_intr(struct aq_hw_s *hw) static int eth_atl_dev_init(struct rte_eth_dev *eth_dev) { - struct atl_adapter *adapter = - (struct atl_adapter *)eth_dev->data->dev_private; + struct atl_adapter *adapter = eth_dev->data->dev_private; struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); struct rte_intr_handle *intr_handle = &pci_dev->intr_handle; struct aq_hw_s *hw = ATL_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private); @@ -1015,8 +1014,7 @@ static int atl_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *stats, unsigned int n) { - struct atl_adapter *adapter = - (struct atl_adapter *)dev->data->dev_private; + struct atl_adapter *adapter = dev->data->dev_private; struct aq_hw_s *hw = &adapter->hw; struct get_stats req = { 0 }; struct macsec_msg_fw_request msg = { 0 }; @@ -1352,8 +1350,7 @@ atl_dev_interrupt_action(struct rte_eth_dev *dev, { struct atl_interrupt *intr = ATL_DEV_PRIVATE_TO_INTR(dev->data->dev_private); - struct atl_adapter *adapter = - (struct atl_adapter *)dev->data->dev_private; + struct atl_adapter *adapter = dev->data->dev_private; struct aq_hw_s *hw = &adapter->hw; if (!(intr->flags & ATL_FLAG_NEED_LINK_UPDATE)) -- 2.20.1