Skip to content

Commit

Permalink
drm/xe: Remove NULL check of lrc->bo in xe_lrc_snapshot_capture()
Browse files Browse the repository at this point in the history
- lrc->bo NULL check is not needed in xe_lrc_snapshot_capture() as
  its already been taken care of in xe_lrc_init().

Signed-off-by: Apoorva Singh <apoorva.singh@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240816080355.897256-1-apoorva.singh@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
  • Loading branch information
Apoorva Singh authored and Nirmoy Das committed Aug 26, 2024
1 parent ff9c674 commit 65112db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/xe/xe_lrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ struct xe_lrc_snapshot *xe_lrc_snapshot_capture(struct xe_lrc *lrc)
if (!snapshot)
return NULL;

if (lrc->bo && lrc->bo->vm)
if (lrc->bo->vm)
xe_vm_get(lrc->bo->vm);

snapshot->context_desc = xe_lrc_ggtt_addr(lrc);
Expand Down

0 comments on commit 65112db

Please sign in to comment.