From patchwork Thu May 26 23:46:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 68724 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp659519qge; Thu, 26 May 2016 16:51:15 -0700 (PDT) X-Received: by 10.200.49.119 with SMTP id h52mr11477756qtb.80.1464306675818; Thu, 26 May 2016 16:51:15 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r1si15036032qkc.189.2016.05.26.16.51.15; Thu, 26 May 2016 16:51:15 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 67C3D67447; Thu, 26 May 2016 23:51:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E2CD267456; Thu, 26 May 2016 23:48:37 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4C33367444; Thu, 26 May 2016 23:48:33 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by lists.linaro.org (Postfix) with ESMTPS id DD8E067457 for ; Thu, 26 May 2016 23:47:05 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id w184so142537482oiw.2 for ; Thu, 26 May 2016 16:47:05 -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=XAhTVKGvrjvceoPG+vHL5RkEMJ9Ok3j/NHzRew2DD90=; b=URjexoCv/8TfrXflrIuTYyejzUZ0NoTOCkT8hACteitk26GhEtzBCCebFbkPnzrBxc xYeRsc0KS/IIu4/P1yFVxXr03dQ8RXCJRH5AxF7by8dwQOAhaHo+xwbUFTkhgO7efIUy YaTcJ5qHlBGcg743/Y1LG78Zu3bthmVMSMXYMw6HkjkSDiYqMrPtyOBBf5FuMBWx6/nK RS5mcsf+HOPznsqC+O+QQYQLazXNCsFpGzg8sZ8ZT0EfDQEexdcbcTjkC89D+dSw4Ohk H6AaGuw3doBZvME84Pz0Kn8wiWz9YHZ3YfSm0sDK2iEUdTQUALKyyL0ZAZMEprYBQdQi H/qA== X-Gm-Message-State: ALyK8tJo6BIRZXhtUgKKSQqTpROhhpXLUHmhV6CxZUQLXTeP73ufwA7svjtBYxCrykaMkbkfGUk= X-Received: by 10.157.12.210 with SMTP id o18mr7339130otd.54.1464306423387; Thu, 26 May 2016 16:47:03 -0700 (PDT) Received: from localhost.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id c7sm7720581oia.8.2016.05.26.16.47.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 May 2016 16:47:02 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 26 May 2016 18:46:47 -0500 Message-Id: <1464306409-7325-9-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464306409-7325-1-git-send-email-bill.fischofer@linaro.org> References: <1464306409-7325-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 08/10] linux-generic: tm: discard rc values properly when not needed X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_traffic_mngr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic/odp_traffic_mngr.c index 72f9493..f8995b4 100644 --- a/platform/linux-generic/odp_traffic_mngr.c +++ b/platform/linux-generic/odp_traffic_mngr.c @@ -940,8 +940,8 @@ static odp_bool_t run_shaper(tm_system_t *tm_system, * If so we need to cancel it. */ if ((shaper_obj->timer_outstanding != 0) && (shaper_obj->in_pkt_desc.queue_num != 0)) - rm_pkt_from_shaper(tm_system, shaper_obj, - &shaper_obj->in_pkt_desc, 0); + (void)rm_pkt_from_shaper(tm_system, shaper_obj, + &shaper_obj->in_pkt_desc, 0); shaper_obj->propagation_result = propagation; if (propagation.action == DELAY_PKT) @@ -2122,7 +2122,7 @@ static int tm_process_input_work_queue(tm_system_t *tm_system, /* If the tm_queue_obj already has a pkt to work with, * then just add this new pkt to the associated * _odp_int_pkt_queue. */ - rc = _odp_pkt_queue_append( + (void)_odp_pkt_queue_append( tm_system->_odp_int_queue_pool, tm_queue_obj->_odp_int_pkt_queue, pkt); tm_queue_obj->pkts_enqueued_cnt++; @@ -2308,9 +2308,9 @@ static void *tm_system_thread(void *arg) /* Process a batch of expired timers - each of which * could cause a pkt to egress the tm system. */ timer_cnt = 1; - rc = tm_process_expired_timers(tm_system, - _odp_int_timer_wheel, - current_ns); + (void)tm_process_expired_timers(tm_system, + _odp_int_timer_wheel, + current_ns); } else { timer_cnt = _odp_timer_wheel_count(_odp_int_timer_wheel);