diff mbox series

drm/i915/selftests: Remove unused local variable 'file'

Message ID 20191112163643.3527-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show
Series drm/i915/selftests: Remove unused local variable 'file' | expand

Commit Message

Chris Wilson Nov. 12, 2019, 4:36 p.m. UTC
drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c:453 igt_threaded_blt() error: uninitialized symbol 'file'.

Fixes: 34485832cb98 ("drm/i915/selftests: Exercise parallel blit operations on a single ctx")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
---
 drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Matthew Auld Nov. 12, 2019, 4:42 p.m. UTC | #1
On 12/11/2019 16:36, Chris Wilson wrote:
> drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c:453 igt_threaded_blt() error: uninitialized symbol 'file'.
> 
> Fixes: 34485832cb98 ("drm/i915/selftests: Exercise parallel blit operations on a single ctx")
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c
index c8a8c07e07ab..675c1a20a2f1 100644
--- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c
+++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c
@@ -435,7 +435,6 @@  static int igt_threaded_blt(struct drm_i915_private *i915,
 	struct task_struct **tsk;
 	unsigned int n_cpus, i;
 	I915_RND_STATE(prng);
-	struct file *file;
 	int err = 0;
 
 	n_cpus = num_online_cpus() + 1;
@@ -450,7 +449,7 @@  static int igt_threaded_blt(struct drm_i915_private *i915,
 
 	thread[0].file = mock_file(i915);
 	if (IS_ERR(thread[0].file)) {
-		err = PTR_ERR(file);
+		err = PTR_ERR(thread[0].file);
 		goto out_thread;
 	}