test/interactive-wayland: fix control reaches end of non-void function
authorRan Benita <ran234@gmail.com>
Thu, 9 Jun 2016 14:23:55 +0000 (17:23 +0300)
committerRan Benita <ran234@gmail.com>
Thu, 9 Jun 2016 14:23:55 +0000 (17:23 +0300)
AFAICS there is nothing that can fail directly in this function, so
change it to void.

Signed-off-by: Ran Benita <ran234@gmail.com>
test/interactive-wayland.c

index 34aa206..6769b12 100644 (file)
@@ -282,7 +282,7 @@ static const struct xdg_surface_listener surface_listener = {
        surface_close
 };
 
-static int surface_create(struct interactive_dpy *inter)
+static void surface_create(struct interactive_dpy *inter)
 {
        int width = 200, height = 200;
 
@@ -676,11 +676,7 @@ main(int argc, char *argv[])
                goto err_conn;
        }
 
-       ret = surface_create(&inter);
-       if (ret) {
-               fprintf(stderr, "Couldn't create a capture window\n");
-               goto err_conn;
-       }
+       surface_create(&inter);
 
        test_disable_stdin_echo();
        do {