drm/amdgpu: remove the adev check for NULL
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 18 Mar 2024 05:56:17 +0000 (11:26 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:38:13 +0000 (13:38 -0400)
commit6fe4dab331a706fe4f08736621f88625c6060df0
tree0cd9dc2bedd11e5d2ab0445437a782ac0c9db85a
parentb72a7e0fd0f8d235f885f84642e5c71f4e058c4b
drm/amdgpu: remove the adev check for NULL

adev is a global data structure and isn't expected
to be NULL and hence removing the redundant adev
check from the devcoredump code.

Cc: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c