From b67860e98fbead33f5553ff6ee091997ea924f96 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 5 Jun 2014 03:10:43 +0200 Subject: [PATCH] eina: remove logically dead code. The for loop above would exit with at least length = 0, so < 0 is just impossible. CID 1039943. --- src/lib/eina/eina_convert.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/eina/eina_convert.c b/src/lib/eina/eina_convert.c index 0255b00..d795d30 100644 --- a/src/lib/eina/eina_convert.c +++ b/src/lib/eina/eina_convert.c @@ -271,9 +271,6 @@ eina_convert_atod(const char *src, int length, long long *m, long *e) exponent += *str - '0'; } - if (length < 0) - goto on_length_error; - if (sign < 0) exponent = -exponent; -- 2.7.4