drm/amdgpu: consolidate case statements
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Sep 2021 16:06:03 +0000 (12:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:23:02 +0000 (15:23 -0400)
IP_VERSION(11, 0, 13) does the exact same thing as
IP_VERSION(11, 0, 12) so squash them together.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c

index 382cebfc2069fd2eccf2d99361cec7e1e0c03b96..aaf200ec982b9b8fe402b091c12fd65bc8eb8068 100644 (file)
@@ -216,13 +216,6 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)
        case IP_VERSION(11, 0, 7):
        case IP_VERSION(11, 0, 11):
        case IP_VERSION(11, 0, 12):
-               err = psp_init_sos_microcode(psp, chip_name);
-               if (err)
-                       return err;
-               err = psp_init_ta_microcode(psp, chip_name);
-               if (err)
-                       return err;
-               break;
        case IP_VERSION(11, 0, 13):
                err = psp_init_sos_microcode(psp, chip_name);
                if (err)