From patchwork Mon Aug 25 19:32:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 35939 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C76B920565 for ; Mon, 25 Aug 2014 19:32:53 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id tr6sf43052974ieb.10 for ; Mon, 25 Aug 2014 12:32:53 -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:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=XRaY1CdOhd8aT840N8N17ubuu1O4xHLcasRfgFUWkNU=; b=i2LMkPsb3qA+H7o9hebMvRLJuSiKzAXUnnukhxlKgs1xF1vt9He93G64gtNrZIs3/G RkD8q/4QexRoHO59ism4t4DCZ/CZCGkjYuFyIsuNb/59FrnkRKkSMBVHFE7jVBKuTH2Y eeBY9v1yQfA3YyQV3D5wdbth4/u8DKsYMMAMAUCq68KszioK8Px7YCogjUO0+nPAxJxD zkWqyfVQ67+2+WtDVTYsfv44modryCCeIsMS0iOaWVcBlMoXXh/bzvLGny0TuLUjNB6P p7JDq4Qh4I2OyZbMjtKOUMtjZuqcfHLMDm+R4whEOC76qaPLkidOeW8tkfkm7fEG1QpF Fk2g== X-Gm-Message-State: ALoCoQk7beKzTKYuve3GEQ6vcmnPotPyqcgjUAk3DATvF7UyPCYQ8CyUuCkWeyycK1iYiIiST71F X-Received: by 10.42.62.73 with SMTP id x9mr19092861ich.15.1408995173264; Mon, 25 Aug 2014 12:32:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.35 with SMTP id n32ls2242888qga.25.gmail; Mon, 25 Aug 2014 12:32:53 -0700 (PDT) X-Received: by 10.220.118.136 with SMTP id v8mr7193552vcq.50.1408995173050; Mon, 25 Aug 2014 12:32:53 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id g5si522980vcz.7.2014.08.25.12.32.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 12:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so16010694vcb.9 for ; Mon, 25 Aug 2014 12:32:52 -0700 (PDT) X-Received: by 10.220.2.136 with SMTP id 8mr20186448vcj.17.1408995172696; Mon, 25 Aug 2014 12:32:52 -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.221.45.67 with SMTP id uj3csp142229vcb; Mon, 25 Aug 2014 12:32:52 -0700 (PDT) X-Received: by 10.140.84.21 with SMTP id k21mr35737026qgd.70.1408995172101; Mon, 25 Aug 2014 12:32:52 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c30si1073186qgf.66.2014.08.25.12.32.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 25 Aug 2014 12:32:52 -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: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XM00Y-00081h-2z; Mon, 25 Aug 2014 19:32:50 +0000 Received: from mail-la0-f51.google.com ([209.85.215.51]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XM00R-0007ze-MR for lng-odp@lists.linaro.org; Mon, 25 Aug 2014 19:32:43 +0000 Received: by mail-la0-f51.google.com with SMTP id pn19so13561431lab.24 for ; Mon, 25 Aug 2014 12:32:37 -0700 (PDT) X-Received: by 10.112.235.199 with SMTP id uo7mr22247453lbc.50.1408995157358; Mon, 25 Aug 2014 12:32:37 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id r1sm472498lae.33.2014.08.25.12.32.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 25 Aug 2014 12:32:36 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Mon, 25 Aug 2014 21:32:32 +0200 Message-Id: <1408995152-29478-1-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] test/api_test/odp_ring_test.c: clear clang warning X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@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.220.178 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 Remove dead initialisation. Signed-off-by: Anders Roxell --- test/api_test/odp_ring_test.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/api_test/odp_ring_test.c b/test/api_test/odp_ring_test.c index 6c2642e..93bd869 100644 --- a/test/api_test/odp_ring_test.c +++ b/test/api_test/odp_ring_test.c @@ -103,7 +103,6 @@ static int test_ring_basic(odp_ring_t *r) printf("enqueue MAX_BULK objs\n"); ret = odp_ring_sp_enqueue_burst(r, cur_src, MAX_BULK); - cur_src += MAX_BULK; if ((ret & ODP_RING_SZ_MASK) != MAX_BULK) { ODP_ERR("sp_enq for %d obj failed\n", MAX_BULK); goto fail; @@ -160,7 +159,6 @@ static int test_ring_basic(odp_ring_t *r) } printf("enqueue MAX_BULK objs\n"); ret = odp_ring_mp_enqueue_bulk(r, cur_src, MAX_BULK); - cur_src += MAX_BULK; if (ret != 0) { ODP_ERR("mp_enq for %d obj failed\n", MAX_BULK); goto fail; @@ -192,9 +190,6 @@ static int test_ring_basic(odp_ring_t *r) goto fail; } - cur_src = src; - cur_dst = dst; - printf("test watermark and default bulk enqueue / dequeue\n"); odp_ring_set_water_mark(r, 20); num_elems = 16; @@ -209,7 +204,6 @@ static int test_ring_basic(odp_ring_t *r) goto fail; } ret = odp_ring_mp_enqueue_bulk(r, cur_src, num_elems); - cur_src += num_elems; if (ret != -EDQUOT) { ODP_ERR("Watermark not exceeded\n"); goto fail;