summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2017-03-08 14:13:01 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-03-08 14:13:01 -0600
commit8ed9aec49be611cb3eb255604d3869e3c6c60fbe (patch)
tree02cf462cb244abd0ce2abde177903038bdc466e1
parentf83ce20e1c72c3a645553feeea640e0c4b69e6c1 (diff)
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
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c
index f054e461ab..2905bc09eb 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -449,7 +449,7 @@ _ecore_wl2_shell_bind(Ecore_Wl2_Display *ewd)
449 449
450 if (!global) return; 450 if (!global) return;
451 451
452 else if (!strcmp(global->interface, "wl_shell")) 452 if (!strcmp(global->interface, "wl_shell"))
453 { 453 {
454 ewd->wl.wl_shell = 454 ewd->wl.wl_shell =
455 wl_registry_bind(ewd->wl.registry, global->id, 455 wl_registry_bind(ewd->wl.registry, global->id,