]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/ttm: Resource cannot be NULL in ttm_resource_intersects
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fri, 19 Sep 2025 13:15:28 +0000 (14:15 +0100)
committerTvrtko Ursulin <tursulin@ursulin.net>
Wed, 3 Dec 2025 14:48:24 +0000 (14:48 +0000)
commitfeb065155bab2fabc3545bf57ae31e86d02df9a1
tree08442cb28bef7d269ed6de481c0a39ad4887c79d
parentee8721bee80150ed1e4ee5ebb6aaf070802ac81b
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
drivers/gpu/drm/ttm/ttm_resource.c