drm/xe: Drop bogus vma NULL check
authorNirmoy Das <nirmoy.das@intel.com>
Mon, 18 Mar 2024 09:35:47 +0000 (10:35 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 19 Mar 2024 08:58:42 +0000 (08:58 +0000)
The vma pointer can't be NULL here.

Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240318093547.16326-1-nirmoy.das@intel.com
drivers/gpu/drm/xe/xe_pt.c

index 7f54bc3..8d3922d 100644 (file)
@@ -618,7 +618,7 @@ xe_pt_stage_bind(struct xe_tile *tile, struct xe_vma *vma,
        struct xe_pt *pt = xe_vma_vm(vma)->pt_root[tile->id];
        int ret;
 
-       if (vma && (vma->gpuva.flags & XE_VMA_ATOMIC_PTE_BIT) &&
+       if ((vma->gpuva.flags & XE_VMA_ATOMIC_PTE_BIT) &&
            (is_devmem || !IS_DGFX(xe)))
                xe_walk.default_pte |= XE_USM_PPGTT_PTE_AE;