drmtest: use do_or_die

This commit is contained in:
Daniel Vetter 2012-10-01 11:34:10 +02:00
parent a65087a26e
commit 9d1a3587ac

View File

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