summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>2025-09-19 16:15:28 +0300
committerTvrtko Ursulin <tursulin@ursulin.net>2025-12-03 17:48:24 +0300
commitfeb065155bab2fabc3545bf57ae31e86d02df9a1 (patch)
tree08442cb28bef7d269ed6de481c0a39ad4887c79d
parentee8721bee80150ed1e4ee5ebb6aaf070802ac81b (diff)
downloadlinux-feb065155bab2fabc3545bf57ae31e86d02df9a1.tar.xz
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
-rw-r--r--drivers/gpu/drm/ttm/ttm_resource.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_resource.c b/drivers/gpu/drm/ttm/ttm_resource.c
index f5aa29dc6ec0..2dd19f229d32 100644
--- a/drivers/gpu/drm/ttm/ttm_resource.c
+++ b/drivers/gpu/drm/ttm/ttm_resource.c
@@ -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;