]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm/amdgpu: drop redundant check of ip discovery_bin
authorGuchun Chen <guchun.chen@amd.com>
Fri, 14 Jan 2022 05:28:16 +0000 (13:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jan 2022 22:23:43 +0000 (17:23 -0500)
Early check in amdgpu_discovery_reg_base_init promises this.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index be45650250faf2ccc1331b73441c3b77b095dbdd..b0bf69611fbda4291881b97ca7ac07a6db035269 100644 (file)
@@ -1195,11 +1195,6 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
                        return -EINVAL;
 
                amdgpu_discovery_harvest_ip(adev);
-
-               if (!adev->mman.discovery_bin) {
-                       DRM_ERROR("ip discovery uninitialized\n");
-                       return -EINVAL;
-               }
                break;
        }