From patchwork Mon Nov 16 18:03:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 56667 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1467140lbb; Mon, 16 Nov 2015 10:07:44 -0800 (PST) X-Received: by 10.140.170.131 with SMTP id q125mr40070936qhq.84.1447697264565; Mon, 16 Nov 2015 10:07:44 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a62si26899396qka.76.2015.11.16.10.07.43; Mon, 16 Nov 2015 10:07:44 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id C98ED61982; Mon, 16 Nov 2015 18:07:43 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 C1F7E61947; Mon, 16 Nov 2015 18:07:39 +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 EE42A6195C; Mon, 16 Nov 2015 18:07:35 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id B7FB4611F3 for ; Mon, 16 Nov 2015 18:07:34 +0000 (UTC) Received: by lbbsy6 with SMTP id sy6so64689909lbb.2 for ; Mon, 16 Nov 2015 10:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=lC8W5GWnGOcxAMDy5wdbSn4F7NdI4xT/zpogPQwfqQs=; b=QRSTdci7gdlEIdeNrCpLyOF8ODAHc9LC3N7sqRVlnvaIX8N/SsRxaU11rrSlviSfJJ zTm27xSKJwrkg47qcnOp3vEVZecGsDYOsQiMCtg9ToPM8mpTU/mdKeO3ZTXEfAXin7cV uIPUyRpsVNkg7PWJ5bd3MykV+v/U3ChYlvMRAElnZyC/iP8SBtXbRZiD5qewIKfQBQa3 P6VudI+I5EPStNzL+2zrzJgm+pOpk+UJhDxcERWJ1EogDvbU1ciKg/LnocZghhpM2+lu kL53A67hlXz9J1TNWjQJosWTXVm0F0DhqvLvdFH1zN2SoYLXcxrappr62KWrKNcLXtFm Gy6A== 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=lC8W5GWnGOcxAMDy5wdbSn4F7NdI4xT/zpogPQwfqQs=; b=Qq8hvQYoZpmvNEv1DHB9RQtvDwyU9qtNDvW8mmWWsayXP79515QzznS3eRUAHN+etS RlFrKya5KyTdVVrtdw8r2nMiEvcnM6dRpHSMdrNqdmY7ux8Tl3UokBN+0eKv9MGKwKx4 oK+9iRp9kNlcOlVjGLeuL/oUCInsEmee33M448V0TQgN6MnsX7Lek2TdI8AGrYktTdyM YLyeLuV8Fbakn/lUmBcFt29Z4gbXjzhlzs17iqH88yMWbZxq9J4UMKg3iXROQk48aodd sEtrqdnB9b7FZnkLxhPLvkM0zKW25R9dkdBYMtBmG5ynjM22YASfmep33aeERehQHPf+ Splw== X-Gm-Message-State: ALoCoQkCNat7as4CkkrpwYHMgwUmzPj7DloleUCeN5NL/izT7Z2sNuuZ9Fm0FuDtzFZXCueivlIY X-Received: by 10.112.8.104 with SMTP id q8mr17705953lba.115.1447697253494; Mon, 16 Nov 2015 10:07:33 -0800 (PST) Received: from localhost (c-aa3470d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.52.170]) by smtp.gmail.com with ESMTPSA id bn6sm5655801lbc.10.2015.11.16.10.07.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 10:07:32 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Mon, 16 Nov 2015 19:03:03 +0100 Message-Id: <1447696984-15744-1-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH 1/2] helper/hashtable.c: remove unused variable 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" hashtable.c: In function 'odph_hash_table_create': hashtable.c:68:6: warning: unused variable 'idx' [-Wunused-variable] int idx, i; ^ hashtable.c: In function 'odph_hash_table_lookup': hashtable.c:151:6: warning: unused variable 'idx' [-Wunused-variable] int idx; ^ Signed-off-by: Anders Roxell Reviewed-by: Mike Holmes --- helper/hashtable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helper/hashtable.c b/helper/hashtable.c index 0b29814..1121beb 100644 --- a/helper/hashtable.c +++ b/helper/hashtable.c @@ -65,7 +65,7 @@ odph_table_t odph_hash_table_create(const char *name, uint32_t capacity, uint32_t key_size, uint32_t value_size) { - int idx, i; + int i; uint32_t node_num; odph_hash_table_imp *tbl; odp_shm_t shmem; @@ -148,7 +148,6 @@ int odph_hash_table_destroy(odph_table_t table) odph_table_t odph_hash_table_lookup(const char *name) { - int idx; odph_hash_table_imp *hash_tbl; if (name == NULL || strlen(name) >= ODPH_TABLE_NAME_LEN)