projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab8389
)
Eina promise: Simplify code and remove shadow variable.
author
Tom Hacohen
<tom@stosb.com>
Sun, 5 Jun 2016 09:39:13 +0000
(10:39 +0100)
committer
Tom Hacohen
<tom@stosb.com>
Sun, 5 Jun 2016 09:57:07 +0000
(10:57 +0100)
There was no need for the extra variable. This also fixes a shadow
warning.
src/lib/eina/eina_promise.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_promise.c
b/src/lib/eina/eina_promise.c
index
e6e3a14
..
0b6a180
100644
(file)
--- 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
{