summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-01 11:34:10 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-01 11:34:10 +0200
commit9d1a3587acc75f39a1a070f92dd80f79504bf60c (patch)
treef93769ddc56f7e0e2ff74cb99cc04ed75daf8ea5 /lib/drmtest.c
parenta65087a26e0f7a567a3d09887869d821bb5a7840 (diff)
drmtest: use do_or_die
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;