[PATCH 2/2] drm/amd/amdgpu: Tidy up static int dce_v6_0_get_num_crtc()

Deucher, Alexander Alexander.Deucher at amd.com
Tue May 23 14:33:04 UTC 2017


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Monday, May 15, 2017 10:58 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH 2/2] drm/amd/amdgpu: Tidy up static int
> dce_v6_0_get_num_crtc()
> 
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
> b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
> index 1b6b9b22d780..ec7f7bb77f50 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
> @@ -514,21 +514,16 @@ static void dce_v6_0_set_vga_render_state(struct
> amdgpu_device *adev,
> 
>  static int dce_v6_0_get_num_crtc(struct amdgpu_device *adev)
>  {
> -	int num_crtc = 0;
> -
>  	switch (adev->asic_type) {
>  	case CHIP_TAHITI:
>  	case CHIP_PITCAIRN:
>  	case CHIP_VERDE:
> -		num_crtc = 6;
> -		break;
> +		return 6;
>  	case CHIP_OLAND:
> -		num_crtc = 2;
> -		break;
> +		return 2;
>  	default:
> -		num_crtc = 0;
> +		return 0;
>  	}
> -	return num_crtc;
>  }
> 
>  void dce_v6_0_disable_dce(struct amdgpu_device *adev)
> --
> 2.12.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list