aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2014-12-08 14:46:50 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-12-08 14:46:50 +0100
commitda548e5910b74eac9d96d200256859aa5a08915b (patch)
tree5365e3343f7ff05804c3d4ccc587d2c7355fa51e /src/benchmarks
parentelua: initial skeleton for the Elua library (diff)
downloadefl-da548e5910b74eac9d96d200256859aa5a08915b.tar.gz
eina: Refactored code and removed unwanted assignment.
Summary: Removed unused assignment for length. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1739
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eina/eina_bench_hash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/benchmarks/eina/eina_bench_hash.c b/src/benchmarks/eina/eina_bench_hash.c
index e0e9774504..33d1bba36a 100644
--- a/src/benchmarks/eina/eina_bench_hash.c
+++ b/src/benchmarks/eina/eina_bench_hash.c
@@ -353,9 +353,7 @@ eina_bench_lookup_djb2_inline(int request)
for (i = 0; i < (unsigned int)request; ++i)
{
char tmp_key[10];
- int length = 6;
-
- length = eina_convert_itoa(rand() % request, tmp_key) + 1;
+ int length = eina_convert_itoa(rand() % request, tmp_key) + 1;
elm =
eina_hash_find_by_hash(hash, tmp_key, length,