drmtest: use do_or_die
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Oct 2012 09:34:10 +0000 (11:34 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Oct 2012 09:34:10 +0000 (11:34 +0200)
lib/drmtest.c

index 8df9797..585ebe4 100644 (file)
@@ -798,11 +798,10 @@ unsigned int kmstest_create_fb(int fd, int width, int height, int bpp,
        assert(!status);
        cairo_destroy(cr);
 
-       ret = drmModeAddFB(fd, width, height, depth, bpp,
-                          fb_info->stride,
-                          fb_info->gem_handle, &fb_id);
+       do_or_die(drmModeAddFB(fd, width, height, depth, bpp,
+                              fb_info->stride,
+                              fb_info->gem_handle, &fb_id));
 
-       assert(ret == 0);
        cairo_surface_destroy(surface);
 
        fb_info->fb_id = fb_id;