mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
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
This commit is contained in:
committed by
Rodrigo Vivi
parent
4d14d7717f
commit
6e9213287c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user