Commit feb06515 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Tvrtko Ursulin
Browse files

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: default avatarTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: default avatarThadeu Lima de Souza Cascardo <cascardo@igalia.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarTvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20250919131530.91247-3-tvrtko.ursulin@igalia.com
parent ee8721be
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;