Commit 4a6e6be7 authored by Rodrigo Siqueira's avatar Rodrigo Siqueira

kms_flip: Standardize return value for fb_is_bound

The function fb_is_bound() mix integer value with booleans for handling
the return value. This commit standardizes the return value of
fb_is_bound() for using only booleans.
Signed-off-by: Rodrigo Siqueira's avatarRodrigo Siqueira <>
Reviewed-by: default avatarMaarten Lankhorst <>
parent e94044d6
......@@ -947,8 +947,7 @@ static void paint_flip_mode(struct igt_fb *fb, bool odd_frame)
igt_put_cairo_ctx(drm_fd, fb, cr);
static int
fb_is_bound(struct test_output *o, int fb)
static bool fb_is_bound(struct test_output *o, int fb)
int n;
......@@ -958,7 +957,7 @@ fb_is_bound(struct test_output *o, int fb)
if (drmIoctl(drm_fd, DRM_IOCTL_MODE_GETCRTC, &mode))
return 0;
return false;
if (!mode.mode_valid || mode.fb_id != fb)
return false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment