From patchwork Wed Sep 17 21:14:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 37541 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7ED3F2054D for ; Wed, 17 Sep 2014 21:15:35 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c41sf53696eek.5 for ; Wed, 17 Sep 2014 14:15:34 -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=3RqI65tIgR80/Ah5oTw8/uw+pmHvk1zDYDuASzaYkG8=; b=SEk7pm/sxchdHvs4EvGdM8c7jNRcWbHB09qJ75lOJXYhIeGhgz7QTzagysHR39U+D6 JGSnecpJ2b1/3IZUvlsVUxKY44EEMzK1iXCAPivPPpUv06196aigvq5JDa+G2JU9KIQu qKwKIKhOxI6snfFFA2r6B0Mra4WgntUHsDjNDc5q5TbMqw9NqXI/Fh5AREmU2dGSTRxM vr8IEPYxcu1RhS9EPCOViPB03dY+zA99d5ydvtkQQV0+LlkP04YU0juQyBW/uxCS0Wjg w/EmxNV+Ru2l5eMl7o+P+jnwqbxKpnKTQN+UKL+DJ5kU4RzNGkxyYZ9i48CWUoyoUZUC Tppg== X-Gm-Message-State: ALoCoQmBIa23sAi9bqeoiVwZwIdG78hxXQVKajKLr7fKo0GVmqrZqMM9DYjdI34KSDE8fP8pCLxq X-Received: by 10.181.8.226 with SMTP id dn2mr176653wid.4.1410988534634; Wed, 17 Sep 2014 14:15:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.70 with SMTP id q6ls166826lah.62.gmail; Wed, 17 Sep 2014 14:15:34 -0700 (PDT) X-Received: by 10.112.172.38 with SMTP id az6mr43539531lbc.53.1410988534482; Wed, 17 Sep 2014 14:15:34 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mx.google.com with ESMTPS id di11si30156884lac.67.2014.09.17.14.15.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 14:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id z11so2722833lbi.12 for ; Wed, 17 Sep 2014 14:15:34 -0700 (PDT) X-Received: by 10.152.204.231 with SMTP id lb7mr404366lac.44.1410988534373; Wed, 17 Sep 2014 14:15:34 -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.130.169 with SMTP id of9csp657782lbb; Wed, 17 Sep 2014 14:15:33 -0700 (PDT) X-Received: by 10.224.54.129 with SMTP id q1mr211945qag.6.1410988533064; Wed, 17 Sep 2014 14:15:33 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c6si23904458qad.71.2014.09.17.14.15.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 17 Sep 2014 14:15:33 -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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XUMZX-0002W6-2o; Wed, 17 Sep 2014 21:15:31 +0000 Received: from mail-qg0-f50.google.com ([209.85.192.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XUMZR-0002Uv-I2 for lng-odp@lists.linaro.org; Wed, 17 Sep 2014 21:15:25 +0000 Received: by mail-qg0-f50.google.com with SMTP id z60so2728358qgd.37 for ; Wed, 17 Sep 2014 14:15:20 -0700 (PDT) X-Received: by 10.224.97.72 with SMTP id k8mr54881568qan.21.1410988520145; Wed, 17 Sep 2014 14:15:20 -0700 (PDT) Received: from fedora1.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id k4sm15170706qaf.0.2014.09.17.14.15.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Sep 2014 14:15:19 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 17 Sep 2014 17:14:55 -0400 Message-Id: <1410988495-51244-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] odp_ring.c: remove redundant initalization 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: 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.181 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 Signed-off-by: Mike Holmes Reviewed-by: Maxim Uvarov --- TAILQ_FOREACH reinitalizises r platform/linux-generic/odp_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_ring.c b/platform/linux-generic/odp_ring.c index 720d8db..d6af5ad 100644 --- a/platform/linux-generic/odp_ring.c +++ b/platform/linux-generic/odp_ring.c @@ -549,7 +549,7 @@ void odph_ring_list_dump(void) /* search a ring from its name */ odph_ring_t *odph_ring_lookup(const char *name) { - odph_ring_t *r = odp_shm_lookup(name); + odph_ring_t *r; odp_rwlock_read_lock(&qlock); TAILQ_FOREACH(r, &odp_ring_list, next) {