From 8e3fe6a3ed679fa2bf78149a8ed2e6088c7c67e3 Mon Sep 17 00:00:00 2001 From: Michał Winiarski Date: Wed, 13 Mar 2019 12:29:10 +0100 Subject: lib/igt_sysfs: Remove idx from sysfs_open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to sysfs_path - more explicit more better. Signed-off-by: Michał Winiarski Reviewed-by: Chris Wilson --- tests/i915/i915_hangman.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/i915/i915_hangman.c') diff --git a/tests/i915/i915_hangman.c b/tests/i915/i915_hangman.c index 4e515e3a..9a1d5889 100644 --- a/tests/i915/i915_hangman.c +++ b/tests/i915/i915_hangman.c @@ -262,14 +262,12 @@ igt_main igt_skip_on_simulation(); igt_fixture { - int idx; - device = drm_open_driver(DRIVER_INTEL); igt_require_gem(device); hang = igt_allow_hang(device, 0, HANG_ALLOW_CAPTURE); - sysfs = igt_sysfs_open(device, &idx); + sysfs = igt_sysfs_open(device); igt_assert(sysfs != -1); igt_require(has_error_state(sysfs)); -- cgit v1.2.3