]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Remove unnecessary NULL check
authorKent Russell <kent.russell@amd.com>
Thu, 2 Jan 2025 14:21:46 +0000 (09:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jan 2025 19:44:29 +0000 (14:44 -0500)
commit6c9c97387be1bf4a5881fe1a6cd00acd4322f283
tree97ce4ee360823048edb287a2554c9aee7c75fbd6
parent24a1b66752bb646f2905b6d952a712e61155c9ca
drm/amdgpu: Remove unnecessary NULL check

container_of cannot return NULL, so it is unnecessary to check for
NULL after gem_to_amdgpu_bo, which is just a container_of call

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c