aboutsummaryrefslogtreecommitdiff
path: root/helper/hashtable.c
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2015-11-16 19:03:03 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-11-18 13:06:45 +0300
commit9be179223ffe4fdda3e8bd73c4ffe712a0b19574 (patch)
tree5797c27e0781ee1a308cd51ec374f503ad8bce4b /helper/hashtable.c
parentc7da92cdc9568c1ab9d7f75c81bcb5ad530b685d (diff)
helper/hashtable.c: remove unused variable
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 <anders.roxell@linaro.org> Reviewed-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper/hashtable.c')
-rw-r--r--helper/hashtable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/helper/hashtable.c b/helper/hashtable.c
index 0b29814e5..1121beb0c 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)