From patchwork Mon Apr 6 11:54:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 46781 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 23A69214BA for ; Mon, 6 Apr 2015 11:54:27 +0000 (UTC) Received: by layy10 with SMTP id y10sf5410636lay.0 for ; Mon, 06 Apr 2015 04:54:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=je+7kPtu5sUjsqfFlKwbol8zx3x9Pm3RIZvJpef8iso=; b=JvJOGVQZcXG0vRklm2N6nfYDz5D+QC/R3FxsOraWjKT3Xmce1uY5Zu262uH4RpfDCq eSJzUogzQ9drd8UgtCx+BVo5+H2sKPxDClC+5R/Yc2tg7M1wz1bPf5WokGc7EL4/D4D2 bgyQImdoELxpuqM6wF/6K4O8nMw0cWRGQ6knkrfGxGuhliCmoyMyNv9h0RikgAvp9jA0 ml0cvgS8I0NIEAnS6snNOOPVBo9U/39CnI5BJlknLLdbCstElh9vWF1bUvtW3cohne3B lqm7+oc9uJhH4HKzBB+TrWb0wAQ7tAcDEe4kIe0K8KD2IODyDQ0BaHMnB2a+9AvVAhOm hyHA== X-Gm-Message-State: ALoCoQnM2Yy47/SwF1tuV2e/GlLmLwSvNKGgdwMZI5yy+FALC5nHVcJCn5btM2hEfqOO/VJheGlV X-Received: by 10.152.184.73 with SMTP id es9mr3034772lac.4.1428321265965; Mon, 06 Apr 2015 04:54:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.101 with SMTP id i5ls53580laa.58.gmail; Mon, 06 Apr 2015 04:54:25 -0700 (PDT) X-Received: by 10.112.183.134 with SMTP id em6mr13119281lbc.52.1428321265747; Mon, 06 Apr 2015 04:54:25 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id b2si3386113lbi.36.2015.04.06.04.54.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Apr 2015 04:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbbzk7 with SMTP id zk7so18138579lbb.0 for ; Mon, 06 Apr 2015 04:54:25 -0700 (PDT) X-Received: by 10.152.19.199 with SMTP id h7mr13710663lae.32.1428321265529; Mon, 06 Apr 2015 04:54:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp3307075lbq; Mon, 6 Apr 2015 04:54:24 -0700 (PDT) X-Received: by 10.140.94.104 with SMTP id f95mr16304640qge.38.1428321264267; Mon, 06 Apr 2015 04:54:24 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o80si3878874qhb.75.2015.04.06.04.54.23; Mon, 06 Apr 2015 04:54:24 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 4A3FA64EB3; Mon, 6 Apr 2015 11:54:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 78BEB64E24; Mon, 6 Apr 2015 11:54:20 +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 D06E464EAD; Mon, 6 Apr 2015 11:54:10 +0000 (UTC) Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by lists.linaro.org (Postfix) with ESMTPS id 54EA864E24 for ; Mon, 6 Apr 2015 11:54:09 +0000 (UTC) Received: by qgdy78 with SMTP id y78so7312490qgd.0 for ; Mon, 06 Apr 2015 04:54:09 -0700 (PDT) X-Received: by 10.140.150.78 with SMTP id 75mr17455079qhw.88.1428321249108; Mon, 06 Apr 2015 04:54:09 -0700 (PDT) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id d36sm2950900qkh.45.2015.04.06.04.54.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Apr 2015 04:54:08 -0700 (PDT) From: Mike Holmes To: bala.manoharan@linaro.org Date: Mon, 6 Apr 2015 07:54:01 -0400 Message-Id: <1428321241-1552-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: Classification patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH] validation: classification: un-checked return X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Fixes CID 89196 Signed-off-by: Mike Holmes Reviewed-by: Bill Fischofer --- test/validation/classification/odp_classification_tests.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c index 0530f99..1bf080f 100644 --- a/test/validation/classification/odp_classification_tests.c +++ b/test/validation/classification/odp_classification_tests.c @@ -126,6 +126,7 @@ static int cls_pkt_set_seq(odp_packet_t pkt) static uint32_t seq; cls_test_packet_t data; uint32_t offset; + int status; data.magic = DATA_MAGIC; data.seq = ++seq; @@ -133,10 +134,10 @@ static int cls_pkt_set_seq(odp_packet_t pkt) offset = odp_packet_l4_offset(pkt); CU_ASSERT_FATAL(offset != 0); - odp_packet_copydata_in(pkt, offset + ODPH_UDPHDR_LEN, - sizeof(data), &data); + status = odp_packet_copydata_in(pkt, offset + ODPH_UDPHDR_LEN, + sizeof(data), &data); - return 0; + return status; } static uint32_t cls_pkt_get_seq(odp_packet_t pkt)