From c18b2d57a98c061845e0ec31bfffc90e03356aaa Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Fri, 6 Feb 2015 10:53:10 +0100 Subject: lib/ioctl: api polish for gem_context_has_param Just push the igt_require down to align with the usual style. Signed-off-by: Daniel Vetter --- lib/ioctl_wrappers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ioctl_wrappers.c') diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 19a457ac..dd89e2c5 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -1080,7 +1080,7 @@ int gem_context_set_param(int fd, struct local_i915_gem_context_param *p) return 0; } -int gem_context_has_param(int fd, uint64_t param) +void gem_context_require_param(int fd, uint64_t param) { struct local_i915_gem_context_param p; @@ -1089,5 +1089,5 @@ int gem_context_has_param(int fd, uint64_t param) p.value = 0; p.size = 0; - return gem_context_get_param(fd, &p) == 0; + igt_require(gem_context_get_param(fd, &p) == 0); } -- cgit v1.2.3