drm/amdgpu: Remove unnecessary NULL check
authorFelix Kuehling <felix.kuehling@amd.com>
Mon, 15 Jan 2024 21:51:46 +0000 (16:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jan 2024 20:44:49 +0000 (15:44 -0500)
commit5394fb2a5bd5c5ec8b0470649eaba7f55ef2defe
treebf2a91667cb6249e030a9779a751e652a4d9fcdf
parent087a3e13ec49358eda582176a50068d38d94080f
drm/amdgpu: Remove unnecessary NULL check

A static checker pointed out, that bo_va->base.bo was already derefenced
earlier in the same scope. Therefore this check is unnecessary here.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 50661eb1a2c8 ("drm/amdgpu: Auto-validate DMABuf imports in compute VMs")
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c