mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
drm/ttm: Resource cannot be NULL in ttm_resource_intersects
Function has a single caller and the resource cannot be NULL therefore remove the early return check. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Reviewed-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net> Link: https://lore.kernel.org/r/20250919131530.91247-3-tvrtko.ursulin@igalia.com
This commit is contained in:
parent
ee8721bee8
commit
feb065155b
|
|
@ -446,9 +446,6 @@ bool ttm_resource_intersects(struct ttm_device *bdev,
|
|||
{
|
||||
struct ttm_resource_manager *man;
|
||||
|
||||
if (!res)
|
||||
return false;
|
||||
|
||||
man = ttm_manager_type(bdev, res->mem_type);
|
||||
if (!place || !man->func->intersects)
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user