tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=dc73f6644e0ed8fdbd2c6c8187591fb7eb8027c7

commit dc73f6644e0ed8fdbd2c6c8187591fb7eb8027c7
Author: Tom Hacohen <t...@stosb.com>
Date:   Sun Jun 5 10:39:13 2016 +0100

    Eina promise: Simplify code and remove shadow variable.
    
    There was no need for the extra variable. This also fixes a shadow
    warning.
---
 src/lib/eina/eina_promise.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index e6e3a14..0b6a180 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -280,8 +280,7 @@ _eina_promise_pointer_value_get(_Eina_Promise_Default 
const* p)
    if (p->has_finished && !p->has_errored)
      {
         char const* buffer = promise->value;
-        void** p = (void**)buffer;
-        return *p;
+        return (void**)buffer;
      }
    else
      {

-- 


Reply via email to