From patchwork Thu May 5 00:21:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 67189 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp474534qge; Wed, 4 May 2016 17:23:40 -0700 (PDT) X-Received: by 10.140.85.133 with SMTP id n5mr11568607qgd.32.1462407820234; Wed, 04 May 2016 17:23:40 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d9si4323932qkb.119.2016.05.04.17.23.39; Wed, 04 May 2016 17:23:40 -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 BF4D4615BD; Thu, 5 May 2016 00:23: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=-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 41A576163C; Thu, 5 May 2016 00:23:34 +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 3FFED615CB; Thu, 5 May 2016 00:23:25 +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 49B7C615BF for ; Thu, 5 May 2016 00:21:03 +0000 (UTC) Received: by mail-oi0-f51.google.com with SMTP id x19so85619578oix.2 for ; Wed, 04 May 2016 17:21:03 -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; bh=gw6tWowCSqRR4mZz6U8pmW+0NQS6KNjytGbrsnACjbY=; b=bIt6498wO+VoyendPvBUXCtJY/hSaq5Nm10DtWySXE10ZTfPyXxmW/ekv5Q7fElu+Y RFNduaGucTVhcC+iJar9C6FWEWDNEzv5deV1FDl92fOMxtsYI598h3vULybO9THMtLuX 5D5p2X5cuG0EbcKFVtdjNbs5OzmElmRRfq1+3rozjMBoA261WfZnmc7xXqTrSa8uZMPC io7kG+XgDYgsmvMrrKyv4s9Pm74frUJMJ+7gMz4Vwvgj+66i6Y39MIB1PIHr0iV5z/z3 gVuW9rh9T/YKTFJzvG242jfCx/G6T+TJYqjptBX1rYnPy7RcbG137qg0XeaE0+UMEtJU gJmA== X-Gm-Message-State: AOPr4FXgZEP2+9+yxt8ssxvHKqKWxwVbFZ8SFbf/9sQvhR/2FscNdGmwyl4+LG6+EuHd7lbmzPs= X-Received: by 10.202.102.36 with SMTP id a36mr5001604oic.122.1462407662786; Wed, 04 May 2016 17:21:02 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id 63sm2286922otb.25.2016.05.04.17.21.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 May 2016 17:21:01 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 4 May 2016 19:21:00 -0500 Message-Id: <1462407660-28314-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH] test: packet: remove unused values to address coverity scan issue 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" Resolve bug https://bugs.linaro.org/show_bug.cgi?id=2220 by removing unused values. Signed-off-by: Bill Fischofer --- test/validation/packet/packet.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/validation/packet/packet.c b/test/validation/packet/packet.c index 7c9622f..bf8d9f4 100644 --- a/test/validation/packet/packet.c +++ b/test/validation/packet/packet.c @@ -1159,7 +1159,7 @@ void packet_test_align(void) CU_ASSERT(odp_packet_align(&pkt, 0, pkt_len, 0) < 0); offset = seg_len - 5; - pkt_data = odp_packet_offset(pkt, offset, &seg_len, NULL); + (void)odp_packet_offset(pkt, offset, &seg_len, NULL); /* Realign for addressability */ CU_ASSERT(odp_packet_align(&pkt, offset, @@ -1167,8 +1167,7 @@ void packet_test_align(void) /* Alignment doesn't change packet length or contents */ CU_ASSERT(odp_packet_len(pkt) == pkt_len); - aligned_data = odp_packet_offset(pkt, offset, - &aligned_seglen, NULL); + (void)odp_packet_offset(pkt, offset, &aligned_seglen, NULL); _packet_compare_offset(pkt, offset, segmented_test_packet, offset, aligned_seglen);