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:
parent
aab8389a6f
commit
dc73f6644e
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue