From patchwork Fri Feb 3 00:28:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 93143 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp370425qgi; Thu, 2 Feb 2017 16:28:39 -0800 (PST) X-Received: by 10.107.6.30 with SMTP id 30mr8121004iog.78.1486081719740; Thu, 02 Feb 2017 16:28:39 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c66si139947ite.5.2017.02.02.16.28.39; Thu, 02 Feb 2017 16:28:39 -0800 (PST) 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 sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0E2BB62DD9; Fri, 3 Feb 2017 00:28:39 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 D44D062DD1; Fri, 3 Feb 2017 00:28:13 +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 141FD60F4A; Fri, 3 Feb 2017 00:28:09 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id 0BEC8609A1 for ; Fri, 3 Feb 2017 00:28:08 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id s203so2638616oie.1 for ; Thu, 02 Feb 2017 16:28:08 -0800 (PST) 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; bh=/pCN/DwqNUh43P5HGbN56VlPMHF7FlVl/oRpz6hjm/w=; b=Ol5ohUCw2OqmOpw73tzmlgRhBYx4A2Wc/UktOpqjnPsZKNXSCuYTs7BYsV2MR6+FHr eoWGiHR1ER0LVDMvF7pIEqBFST6bgGW/3C0SZs9G7HIpBO59dfViumYcHuPEF2+XDnFp 95oivQT0yFWbzmJAzkAN9SgF28Cf+o0i7OCnJZsu1p2Ufj7wimvizMV60gTeUr1pM+V6 0uqDa9EyfS+X2q/aAivb3CeBtsyYegHufiAIbgPtk4oAYJ+rJJMOqFjuMhDKEjrpTHBY V8GSdkK3oHmFOsJHGbQnZgwUNEfF0Ym2tIMU8zqxFHBntkzOvJDG0w7W4wGECNnUhr28 K2MA== X-Gm-Message-State: AIkVDXJPJLKULpsMoPA7OQ2o3tq4KEhmX5Ii4nvVl/Hkb4Oq/PjQ/iIrcdz8WhS57n9g2phqIHs= X-Received: by 10.202.245.214 with SMTP id t205mr5232761oih.52.1486081687261; Thu, 02 Feb 2017 16:28:07 -0800 (PST) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id u19sm13094328ota.12.2017.02.02.16.28.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 16:28:06 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 2 Feb 2017 18:28:01 -0600 Message-Id: <20170203002802.28881-2-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.11.0.295.gd7dffce In-Reply-To: <20170203002802.28881-1-bill.fischofer@linaro.org> References: <20170203002802.28881-1-bill.fischofer@linaro.org> Subject: [lng-odp] [PATCH 2/3] helper: iplookuptable: removed unused variable 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2829 by avoiding unused variable. Signed-off-by: Bill Fischofer --- helper/iplookuptable.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.11.0.295.gd7dffce diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c index 845125b3..9abdab22 100644 --- a/helper/iplookuptable.c +++ b/helper/iplookuptable.c @@ -639,11 +639,9 @@ prefix_insert_iter( /* If this entry contains a nexthop and a small cidr, * push it to the next level. */ - if (entry->cidr > 0) { - state = prefix_insert_into_lx( - tbl, ne, entry->cidr, - push, entry->cidr + 8); - } + if (entry->cidr > 0) + (void)prefix_insert_into_lx(tbl, ne, entry->cidr, + push, entry->cidr + 8); } ne += (ip >> 24);