diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-10-16 09:39:54 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-10-16 09:41:03 +1000 |
commit | dda2323d239a48e50ac9fd6617d7b630d8a14235 (patch) | |
tree | 1ff3f3046ee574c7fcc9b94750c78dade5e703cf /hw/xwayland/xwayland-glamor.c | |
parent | fc78bcca21e767697de6ad4d8e03b6728856f613 (diff) |
xwayland: make a if noop clearer to the compiler/coverity
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/xwayland/xwayland-glamor.c')
-rw-r--r-- | hw/xwayland/xwayland-glamor.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c index 7ea6def61..f4bd561ea 100644 --- a/hw/xwayland/xwayland-glamor.c +++ b/hw/xwayland/xwayland-glamor.c @@ -77,13 +77,16 @@ xwl_glamor_init_wl_registry(struct xwl_screen *xwl_screen, registry, id, interface, - version)); /* no-op */ - else if (xwl_screen->eglstream_backend.is_available && + version)) { + /* no-op */ + } else if (xwl_screen->eglstream_backend.is_available && xwl_screen->eglstream_backend.init_wl_registry(xwl_screen, registry, id, interface, - version)); /* no-op */ + version)) { + /* no-op */ + } } Bool |