From 223a61e12e119d96484ed05c563d1781fd613a4e Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 31 Oct 2013 17:16:33 +0100 Subject: lib: make igt_install_exit_handler never fail Most callers didn't bother checking, so just move the asserts into the function itself. Signed-off-by: Daniel Vetter --- lib/drmtest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/drmtest.h') diff --git a/lib/drmtest.h b/lib/drmtest.h index 6e8b16b5..be0632f4 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -389,7 +389,7 @@ uint32_t drm_format_to_bpp(uint32_t drm_format); typedef void (*igt_exit_handler_t)(int sig); /* reliable atexit helpers, also work when killed by a signal (if possible) */ -int igt_install_exit_handler(igt_exit_handler_t fn); +void igt_install_exit_handler(igt_exit_handler_t fn); void igt_enable_exit_handler(void); void igt_disable_exit_handler(void); -- cgit v1.2.3