From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by dpdk.org (Postfix) with ESMTP id 8E6E5C494 for ; Fri, 24 Jul 2015 19:06:30 +0200 (CEST) Received: by pdbnt7 with SMTP id nt7so16337342pdb.0 for ; Fri, 24 Jul 2015 10:06:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V1ht9tx49OoGumnwXELobdIA6KkD3+ScaTA+dOTBj0E=; b=aiE4INBjA3n34tbzMYbwqfNv01INRjoRZmrHepLYqMNNZdkWhXsRN/USAz+r/jybGZ X9sNBVI94joOFSHbR8XOQzUgtEEvq5YGZiTevo8eIGPMeDczG/ATG1Waq8KznYjfwSBu 9HYfLZWrbNEgMAo9GljnOrQvUFR94J82PerX/uFJE6QMvRIUH5P8z9Pszsdk56GIbnIl wshbj4Hl+JOF5pG1XHYW72DBex/oSymkBQNXLpLDqy7f7PU/pZnPWccZnOEJMXj7sVU/ UK8x2pSac42v1ZCQVaOlm12UDFk546lkt+Ft2wM4llTBG09uj4L/oHZIZjJppuJNVdDD 8OYw== X-Gm-Message-State: ALoCoQlGWSpZdPG9o3gdShN7C3P4g66vh5eva6yIcORZSVruGddbihPdxnCEZi4GXuk0Quy6b40M X-Received: by 10.70.96.2 with SMTP id do2mr33011868pdb.67.1437757589989; Fri, 24 Jul 2015 10:06:29 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id ra10sm15635403pab.19.2015.07.24.10.06.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 10:06:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 24 Jul 2015 10:06:23 -0700 Message-Id: <1437757584-15502-11-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1437757584-15502-1-git-send-email-stephen@networkplumber.org> References: <1437757584-15502-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 10/11] i40e: remove useless cast X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 17:06:31 -0000 drivers/net/i40e/i40e_ethdev.c:2360:18-56: WARNING: casting value returned by memory allocation function to (struct i40e_aqc_get_switch_config_resp *) is useless. Signed-off-by: Stephen Hemminger --- drivers/net/i40e/i40e_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 40b0526..0e19f2e 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2357,8 +2357,7 @@ i40e_pf_get_switch_config(struct i40e_pf *pf) uint16_t start_seid = 0, num_reported; int ret; - switch_config = (struct i40e_aqc_get_switch_config_resp *)\ - rte_zmalloc("i40e", I40E_AQ_LARGE_BUF, 0); + switch_config = rte_zmalloc("i40e", I40E_AQ_LARGE_BUF, 0); if (!switch_config) { PMD_DRV_LOG(ERR, "Failed to allocated memory"); return -ENOMEM; -- 2.1.4