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 B46F2A045E for ; Wed, 29 May 2019 21:16:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F14661B9C5; Wed, 29 May 2019 21:15:33 +0200 (CEST) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id 005941B955 for ; Wed, 29 May 2019 21:15:12 +0200 (CEST) Received: by mail-pl1-f194.google.com with SMTP id w7so1468035plz.1 for ; Wed, 29 May 2019 12:15:12 -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=MMk71HQr3MeTfW5ePt4MbKHnKlrp43hf4CrDRHhmZNI=; b=Qy6g1wPmcAt/GvE1wGIVXXMkju2VdttXg455/TQWW/JpV/pEb0s23QCvSDZvFhTsBE /xesMfhMHEvP9bZswk2IeYgU60kCMopGSuXOmLi03BiqR5sJnveim8aNDb7QQJOYX3bU X1Cz5L0ryr+2NTL89cbqWEJVYI52BJcVrMXcH0H2FsK6HSgQODhMRUASG9JtSOGXszL9 moT2JTfgr69d6b2qpm8GmpkrhE3AqHHECu0dX2us0t2fy/sHqeNSZXZCaTesv0ghyq5U 9Rw6q+q6mvUQc+EDlauhawN5/5OvkUpulZp9hJggKRIby1gAQHf/urq7chSy1avWRTp6 GxSw== 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=MMk71HQr3MeTfW5ePt4MbKHnKlrp43hf4CrDRHhmZNI=; b=HeTHgxzNB/etbwotnc8GT/PmmSUwOjH7/hJS7PBf79si/uVbBrywYw33GceRbMIQqB xmxCcGG3q5Ji0HIZ0PjiOok0DQr2jxNkuw3c96yLlSnX0raw//SG7i8Lu7UuyeuScL0A l1D7UZhCrioWdewCPw457EJwictsINPJEagg50wqGkZjQpmlLRod4zRW7efRtS7r7CpE iZ3HmxdrfuiqfSTFYcTfce++2b5mdrXUx1eqET/Y/Wm007rgQuCLwrU5/B6iGfSKCUqh BQ8h1aaecOvvquBDEF/e9EKfqFNpO/Rg0T2V2v7cXSLWLXRLQNlP3JQpxGysw1DV59VJ inKA== X-Gm-Message-State: APjAAAVxJ6k6ufppgVoTZr9ayfGhrlFR6B4HtjfySLiSs4Kn5+q4TYAE G0LeosvMwffhG5jO95heIevqW6OTzDA= X-Google-Smtp-Source: APXvYqzyoWmw4LOGo947SgbcE7lBVDwT4RNwv9IshJjwz9WLO9aPlkZ+PuMD/uN8u70SrL2MbeEWwA== X-Received: by 2002:a17:902:8303:: with SMTP id bd3mr94921130plb.240.1559157311903; Wed, 29 May 2019 12:15:11 -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.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 12:15:11 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 29 May 2019 12:14:58 -0700 Message-Id: <20190529191501.19053-10-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 09/12] net/enic: 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/enic/enic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h index bd2783430c08..beb439ee7137 100644 --- a/drivers/net/enic/enic.h +++ b/drivers/net/enic/enic.h @@ -252,7 +252,7 @@ static inline unsigned int enic_cq_wq(struct enic *enic, unsigned int wq) static inline struct enic *pmd_priv(struct rte_eth_dev *eth_dev) { - return (struct enic *)eth_dev->data->dev_private; + return eth_dev->data->dev_private; } static inline uint32_t -- 2.20.1