mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 06:43:01 +00:00
lib: remove unnecessary checks on the drm_open_any return value
drm_open_any always returns a valid file descriptor, so there is no need to check the return value. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -15,8 +15,6 @@ int main(void)
|
||||
signal(SIGALRM, SIG_IGN);
|
||||
|
||||
fd = drm_open_any();
|
||||
if (fd < 0)
|
||||
return IGT_EXIT_SKIP;
|
||||
|
||||
alarm(1);
|
||||
if (ioctl(fd, DRM_IOCTL_I915_GEM_SW_FINISH, &arg) == 0)
|
||||
|
||||
Reference in New Issue
Block a user