ecore-wl2: Clarify post-condition for global lookup in _ecore_wl2_shell_bind
authorBryce Harrington <bryce@osg.samsung.com>
Wed, 8 Mar 2017 20:13:01 +0000 (14:13 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 8 Mar 2017 20:13:01 +0000 (14:13 -0600)
commit8ed9aec49be611cb3eb255604d3869e3c6c60fbe
tree02cf462cb244abd0ce2abde177903038bdc466e1
parentf83ce20e1c72c3a645553feeea640e0c4b69e6c1
ecore-wl2: Clarify post-condition for global lookup in _ecore_wl2_shell_bind

Summary:
The !global test is a post-condition that _ecore_wl2_global_find
provided valid data, so the code is clearer if this is kept separate
from the subsequent if chain for looking up the shell.  Since this
post-condition returns from the function on error, it can stand alone.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewers: devilhorns, ManMower

Reviewed By: ManMower

Subscribers: jpeg, cedric

Differential Revision: https://phab.enlightenment.org/D4690
src/lib/ecore_wl2/ecore_wl2_display.c