drm/amdgpu: remove redundant NULL check
authorYushan Zhou <katrinzhou@tencent.com>
Wed, 23 Nov 2022 07:44:37 +0000 (15:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Nov 2022 16:03:37 +0000 (11:03 -0500)
commit5a2a19b7ac59d667d6a3221e7d50b4ab9937792b
tree36fbbc1614e3db4ff78de82329698f26e5d1e9a2
parent65009bf2b4d287ef7ad7e6eb082b7c3d35eb611f
drm/amdgpu: remove redundant NULL check

release_firmware() checks whether firmware pointer is NULL.
Remove the redundant NULL check in psp_sw_fini().

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c