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:
Tvrtko Ursulin
2025-09-19 14:15:28 +01:00
committed by Tvrtko Ursulin
parent ee8721bee8
commit feb065155b

View File

@@ -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;