From patchwork Mon Dec 19 22:15:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 88523 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1403245qgi; Mon, 19 Dec 2016 14:15:55 -0800 (PST) X-Received: by 10.55.149.131 with SMTP id x125mr2581667qkd.128.1482185754967; Mon, 19 Dec 2016 14:15:54 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w26si10671200qtc.62.2016.12.19.14.15.54; Mon, 19 Dec 2016 14:15:54 -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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6ECA562C25; Mon, 19 Dec 2016 22:15:54 +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_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 65AB860E1F; Mon, 19 Dec 2016 22:15:51 +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 E21A460A10; Mon, 19 Dec 2016 22:15:45 +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 B177D60A10 for ; Mon, 19 Dec 2016 22:15:44 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id v84so159438579oie.3 for ; Mon, 19 Dec 2016 14:15:44 -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; bh=kB4aw/O94Rfxk8NDC1UDVXH3/g57CAlfWuN1bGXnHFg=; b=BdUUIiE15IVWqKsYTsdo1xVjf3pDSWmP/UmHbhY0tbNOWPyfe0sDzGwlPMSIFZ/Gn0 mZtTizwtCV9+3W2zuq71hLUODkGVHXHE6ScBl86VVYHlbkpUT1rj6fGmhCxK/wxDSrcM G6kRqlUHBjv7uMEz2W7ah8iCMRUyCD7brO/ftuZ5FIUPtLvokw9/Y5LXmFIPhJOxp4Pz KRmISrCHpAcwREXC+TfKbcgsq7sFq0UtD/eeDnsimUh5xClmEqt9TE05du9l7A4oGxcD iiQPIAo1DEqZsC0E8pFvPy5nr2iNfSqlDSKuFoo5oOwSTLDsSdyqjbWZngVgdzvdEhIi rfLQ== X-Gm-Message-State: AIkVDXLvDYMQTs+OI/l30oFSk2rIFK09sr9FrXJJvXvF5D37+u7CrEW+dEMIr8OMmHaTVJ4VUBk= X-Received: by 10.157.39.87 with SMTP id r81mr3201232ota.168.1482185744042; Mon, 19 Dec 2016 14:15:44 -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 22sm3321124oti.37.2016.12.19.14.15.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Dec 2016 14:15:43 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 19 Dec 2016 16:15:41 -0600 Message-Id: <1482185741-1431-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [lng-odp] [PATCH] example: l3fwd: explicitly ignore rc from parse call 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" odph_eth_addr_parse always returns RC == 0. Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2780 by explicitly ignoring this. Signed-off-by: Bill Fischofer --- example/l3fwd/odp_l3fwd_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/example/l3fwd/odp_l3fwd_db.c b/example/l3fwd/odp_l3fwd_db.c index 082b2c2..a8c2ca8 100644 --- a/example/l3fwd/odp_l3fwd_db.c +++ b/example/l3fwd/odp_l3fwd_db.c @@ -394,7 +394,7 @@ int create_fwd_db_entry(char *input, char **oif, uint8_t **dst_mac) *oif = entry->oif; break; case 2: - odph_eth_addr_parse(&entry->dst_mac, token); + (void)odph_eth_addr_parse(&entry->dst_mac, token); *dst_mac = entry->dst_mac.addr; break;