summaryrefslogtreecommitdiff
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
parent9e91672a4f6ce8f89ce18fd996a055f02df60a22 (diff)
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
-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 e0e9774..33d1bba 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)
353 for (i = 0; i < (unsigned int)request; ++i) 353 for (i = 0; i < (unsigned int)request; ++i)
354 { 354 {
355 char tmp_key[10]; 355 char tmp_key[10];
356 int length = 6; 356 int length = eina_convert_itoa(rand() % request, tmp_key) + 1;
357
358 length = eina_convert_itoa(rand() % request, tmp_key) + 1;
359 357
360 elm = 358 elm =
361 eina_hash_find_by_hash(hash, tmp_key, length, 359 eina_hash_find_by_hash(hash, tmp_key, length,