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
This commit is contained in:
Bryce Harrington 2017-03-08 14:13:01 -06:00 committed by Derek Foreman
parent f83ce20e1c
commit 8ed9aec49b
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ _ecore_wl2_shell_bind(Ecore_Wl2_Display *ewd)
if (!global) return;
else if (!strcmp(global->interface, "wl_shell"))
if (!strcmp(global->interface, "wl_shell"))
{
ewd->wl.wl_shell =
wl_registry_bind(ewd->wl.registry, global->id,