[PATCH] drm/amdgpu: consolidate case statements
Christian König
ckoenig.leichtzumerken at gmail.com
Thu Sep 30 06:27:12 UTC 2021
Am 29.09.21 um 19:45 schrieb Alex Deucher:
> IP_VERSION(11, 0, 13) does the exact same thing as
> IP_VERSION(11, 0, 12) so squash them together.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
> index 382cebfc2069..aaf200ec982b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
> @@ -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)
More information about the amd-gfx
mailing list