From patchwork Thu May 26 15:14:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 68706 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp461983qge; Thu, 26 May 2016 08:21:38 -0700 (PDT) X-Received: by 10.200.49.194 with SMTP id i2mr9441529qte.102.1464276098910; Thu, 26 May 2016 08:21:38 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i1si13313525qkd.282.2016.05.26.08.21.38; Thu, 26 May 2016 08:21:38 -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 72EF46178D; Thu, 26 May 2016 15:21:38 +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_H3, RCVD_IN_MSPIKE_WL, 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 28C5B61813; Thu, 26 May 2016 15:17:27 +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 BFFC6617EA; Thu, 26 May 2016 15:17:22 +0000 (UTC) Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by lists.linaro.org (Postfix) with ESMTPS id 2A71F617ED for ; Thu, 26 May 2016 15:15:01 +0000 (UTC) Received: by mail-oi0-f51.google.com with SMTP id b65so129131021oia.1 for ; Thu, 26 May 2016 08:15:01 -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=Wti1JW2LLndOb1D+UDl11y+MEIDuOSdU8aCkOKhAwbc+GxqJ2zebfp++7JUANq9aXD spYGWL3trbmkhkjB6GWRICyJr8anFpsO0IvhUavGP0X1ghjXfzLW2zQamCMt48Hy08af EucxdzKAK63/2t9dRGW2Yx4om99lr/fEwHjMUsBcZj6Yc3YqJvrYnQogX1FNcHhKXkyk BkRkB1D4RvbV7IGopX0G3jFSQi+sGF8eGS3vvFcNLAht7CEOoovUag7mbwRo6zvHci0C EIwnwQy4GfrLQ5q33hhvKQPEdH1CspL7LgC7mOYAFkNu3/aspGlccPPCN1kG4xonWLEd Gvqw== X-Gm-Message-State: ALyK8tKqKfm1bIT4ymbv0D+HO8mSsLdR7q16n9KAxUWJpoYagl6U6pKiOSAdOUgm5uFgjxAUQP8= X-Received: by 10.157.15.34 with SMTP id 31mr6685089ott.178.1464275700656; Thu, 26 May 2016 08:15:00 -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 60sm6646041ott.13.2016.05.26.08.14.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 May 2016 08:14:55 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 26 May 2016 10:14:44 -0500 Message-Id: <1464275685-18426-10-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464275685-18426-1-git-send-email-bill.fischofer@linaro.org> References: <1464275685-18426-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 09/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);