summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 8df97974..585ebe45 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -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;