mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
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 <daniel.vetter@ffwll.ch>
This commit is contained in:
+1
-1
@@ -212,7 +212,7 @@ igt_pipe_crc_new(igt_debugfs_t *debugfs, int drm_fd, enum pipe pipe,
|
||||
igt_pipe_crc_t *pipe_crc;
|
||||
char buf[128];
|
||||
|
||||
do_or_die(igt_install_exit_handler(pipe_crc_exit_handler));
|
||||
igt_install_exit_handler(pipe_crc_exit_handler);
|
||||
|
||||
pipe_crc = calloc(1, sizeof(struct _igt_pipe_crc));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user