Skip to content

Commit 65112db

Browse files
singh-apoorva1510nirmoy
authored andcommitted
drm/xe: Remove NULL check of lrc->bo in xe_lrc_snapshot_capture()
- 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 <[email protected]> Acked-by: Rodrigo Vivi <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Nirmoy Das <[email protected]>
1 parent ff9c674 commit 65112db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_lrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@ struct xe_lrc_snapshot *xe_lrc_snapshot_capture(struct xe_lrc *lrc)
16491649
if (!snapshot)
16501650
return NULL;
16511651

1652-
if (lrc->bo && lrc->bo->vm)
1652+
if (lrc->bo->vm)
16531653
xe_vm_get(lrc->bo->vm);
16541654

16551655
snapshot->context_desc = xe_lrc_ggtt_addr(lrc);

0 commit comments

Comments
 (0)