diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-02-24 14:02:29 -0800 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-02-28 08:45:36 -0800 |
commit | c90e2633f9acfce3e03a5aa49ca71c2d574a72f9 (patch) | |
tree | 26252edfa693ce1467b58cdcf4334a52c186f75c /tests/i915/gem_ctx_persistence.c | |
parent | 57049558c452272b27eeb099fac07e55a924bbf9 (diff) |
lib/igt_dummyload: Drop ahnd from igt_spin_t
In 4d9396e67930 we have started storing the opts with which the spin was
created as part of igt_spin_t. The ahnd stored as part of igt_spin_t is
therefore redundant. We can get ahnd from opts.ahnd.
Cc: Zbigniew Kempczynski <zbigniew.kempczynski@intel.com>
Cc: Jasmine Newsome <jasmine.newsome@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'tests/i915/gem_ctx_persistence.c')
-rw-r--r-- | tests/i915/gem_ctx_persistence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c index 9312aec3..00dda3a8 100644 --- a/tests/i915/gem_ctx_persistence.c +++ b/tests/i915/gem_ctx_persistence.c @@ -524,7 +524,7 @@ static void test_noheartbeat_many(int i915, int count, unsigned int flags) } for (int n = 0; n < ARRAY_SIZE(spin); n++) { - ahnd = spin[n]->ahnd; + ahnd = spin[n]->opts.ahnd; igt_spin_free(i915, spin[n]); put_ahnd(ahnd); } |