summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests
diff options
context:
space:
mode:
authorTejas Upadhyay <tejas.upadhyay@intel.com>2023-03-07 15:16:43 +0530
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-03-07 14:20:43 -0500
commit6e9213287ce4d75765d2806986d4e3c7e4991b3b (patch)
treec92d714a6b561a0d7421cad4933d79e15fe23baa /drivers/gpu/drm/i915/selftests
parent4d14d7717f19fb1125496b1fd836ca89f11d540f (diff)
downloadlinux-stable-6e9213287ce4d75765d2806986d4e3c7e4991b3b.tar.gz
linux-stable-6e9213287ce4d75765d2806986d4e3c7e4991b3b.tar.bz2
linux-stable-6e9213287ce4d75765d2806986d4e3c7e4991b3b.zip
drm/i915/selftest: Remove avoidable init assignment
We can skip the assignment and i915 variable altogether and use refernce directly. Also used at single place only. Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230307094643.532271-1-tejas.upadhyay@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r--drivers/gpu/drm/i915/selftests/i915_request.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_request.c b/drivers/gpu/drm/i915/selftests/i915_request.c
index 7a27aba3da8a..a9b79888c193 100644
--- a/drivers/gpu/drm/i915/selftests/i915_request.c
+++ b/drivers/gpu/drm/i915/selftests/i915_request.c
@@ -1117,9 +1117,8 @@ out_batch:
static struct i915_vma *recursive_batch(struct intel_gt *gt)
{
- struct drm_i915_private *i915 = gt->i915;
struct drm_i915_gem_object *obj;
- const int ver = GRAPHICS_VER(i915);
+ const int ver = GRAPHICS_VER(gt->i915);
struct i915_vma *vma;
u32 *cmd;
int err;