From patchwork Thu May 19 13:53:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 68128 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3216086qge; Thu, 19 May 2016 06:53:47 -0700 (PDT) X-Received: by 10.140.99.106 with SMTP id p97mr13726465qge.94.1463666027082; Thu, 19 May 2016 06:53:47 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z79si12673487qge.31.2016.05.19.06.53.46; Thu, 19 May 2016 06:53:47 -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 69FF8610AF; Thu, 19 May 2016 13:53:46 +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 A8AE1610E1; Thu, 19 May 2016 13:53:41 +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 466516164C; Thu, 19 May 2016 13:53:39 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by lists.linaro.org (Postfix) with ESMTPS id 6F1C7610AF for ; Thu, 19 May 2016 13:53:37 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id x201so129464476oif.3 for ; Thu, 19 May 2016 06:53:37 -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=+/Yia8lzSqgZrGFldDkuJPUjmnO/JA49/eOBZqMzWC8=; b=UH5LkIL3NqWObW454436f9rOldc3I/u54d1Ad1ZUE9mq1s53rl3AQfqjyqihtEh4jg SQkKXCFgRJssHiy7/aaDHfuQY3JvebLO6B9+77jg1oq48Mk9Pd8SrUc0dZjKGNIukHeq SdxL8Rk+ZiZSxibu1IGZdEZgpjLmni2r19e6zZ/v2r6V4R2pn7Je3oXwbntO826Z7LtA G/eC+d2BMV4PIoChFMzpsS0x7NsIVVjCuhjxo85DqeF158btzbxLlHy0cDuAnTtsk76F LC10WXL4krjzplRVnOiCNTYAKfKCHKwqFZD7S31lHkVVY9ZdfFScMWdUuyd772+DlI4Z P2Nw== X-Gm-Message-State: AOPr4FWLZH+V49kULn/IlxfGDm1le2iEMnmuAB8GKbIflYy9L1Gpd52M6z2p5dAEhH15AxbVy5Q= X-Received: by 10.157.9.100 with SMTP id 91mr7645751otp.142.1463666016883; Thu, 19 May 2016 06:53:36 -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 d75sm3902031oig.15.2016.05.19.06.53.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 May 2016 06:53:36 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 19 May 2016 08:53:34 -0500 Message-Id: <1463666014-28131-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 X-Topics: patch Subject: [lng-odp] [PATCHv2] test: packet: remove unused values 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);