diff options
author | Nirmoy Das <nirmoy.das@intel.com> | 2024-03-18 12:35:47 +0300 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2024-03-19 11:58:42 +0300 |
commit | 6d74e387aa1d7f62bdd6c7d1da6c3061450f3f55 (patch) | |
tree | 26e83684ef54f3e09bc333de5eeb64961f42e8db /drivers/gpu/drm/xe/xe_pt.c | |
parent | a96cd71ec7be0790f9fc4039ad21be8d214b03a4 (diff) | |
download | linux-6d74e387aa1d7f62bdd6c7d1da6c3061450f3f55.tar.xz |
drm/xe: Drop bogus vma NULL check
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
Diffstat (limited to 'drivers/gpu/drm/xe/xe_pt.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_pt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c index 7f54bc3e389d..8d3922d2206e 100644 --- a/drivers/gpu/drm/xe/xe_pt.c +++ b/drivers/gpu/drm/xe/xe_pt.c @@ -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; |