From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by dpdk.org (Postfix) with ESMTP id AFC6CC48E for ; Fri, 24 Jul 2015 19:06:25 +0200 (CEST) Received: by pdrg1 with SMTP id g1so16369337pdr.2 for ; Fri, 24 Jul 2015 10:06:25 -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=Oi3yjGiNqIx4Tp94VTdYbe8A3tZ5af2e8wQ5sJqyIx4=; b=C8t7kVMbA8O6lLGfjnkqOUKiq3rPdzbDI2LBKd+7Ivy47Sd5jF5ZHvtHTC0pJvONLA Poe30YtoAwGIssvO8NzD2urp3gX6GG62cPgZhy7xskhpwL/2y31UerM0tNozKvh8sCtR uVSDqtrvRy24Bofw0rFx+6DDSF5+e+2iql3t2uAJw1p4H8zGcjfD7sfT64M4liQmXBg8 a71ckxxUwQrhJ0WBJdcYnhhqWVZIC/4dGbsLwMFJX5iEPPGo1FGOwTcEzIa45IKES5ef MlfjbeC0C0ncVbYEpTPtZHA7ddpaC5C6zIzl7jRb/D7MAEQ8L5TeOmARh9MsWmOdk2Gp C8ag== X-Gm-Message-State: ALoCoQmnujcJatoAXtziHpeyyTXvPUPzFS7bchuPlhsUammXjL7+ZL6lIcunUEstJa7RGXgc0ctj X-Received: by 10.70.136.129 with SMTP id qa1mr32657539pdb.81.1437757585122; Fri, 24 Jul 2015 10:06:25 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 10:06:24 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 24 Jul 2015 10:06:19 -0700 Message-Id: <1437757584-15502-7-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 06/11] pipeline: 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:26 -0000 Found by modified version of acll_cast.cocci lib/librte_pipeline/rte_pipeline.c:358:18-49: WARNING: casting value returned by memory allocation function to (struct rte_pipeline_table_entry *) is useless. Signed-off-by: Stephen Hemminger --- lib/librte_pipeline/rte_pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pipeline/rte_pipeline.c b/lib/librte_pipeline/rte_pipeline.c index bd700d2..d56cfa7 100644 --- a/lib/librte_pipeline/rte_pipeline.c +++ b/lib/librte_pipeline/rte_pipeline.c @@ -355,8 +355,8 @@ rte_pipeline_table_create(struct rte_pipeline *p, /* Allocate space for the default table entry */ entry_size = sizeof(struct rte_pipeline_table_entry) + params->action_data_size; - default_entry = (struct rte_pipeline_table_entry *) rte_zmalloc_socket( - "PIPELINE", entry_size, RTE_CACHE_LINE_SIZE, p->socket_id); + default_entry = rte_zmalloc_socket("PIPELINE", entry_size, + RTE_CACHE_LINE_SIZE, p->socket_id); if (default_entry == NULL) { RTE_LOG(ERR, PIPELINE, "%s: Failed to allocate default entry\n", __func__); -- 2.1.4