Eina promise: Simplify code and remove shadow variable.

There was no need for the extra variable. This also fixes a shadow
warning.
This commit is contained in:
Tom Hacohen 2016-06-05 10:39:13 +01:00
parent aab8389a6f
commit dc73f6644e
1 changed files with 1 additions and 2 deletions

View File

@ -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
{