[PATCH 1/3] drm/amdgpu: Remove redundant itermediate return val in sdma_v4_0.c
Christian König
deathsimple at vodafone.de
Wed Apr 19 10:28:32 UTC 2017
Am 17.04.2017 um 14:05 schrieb Rex Zhu:
> Change-Id: I27aca4ad0f06f01390c92ed7a520e9c89e99b13d
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com> for the whole
series.
> ---
> drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> index 6299628..35dffb8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> @@ -744,10 +744,8 @@ static int sdma_v4_0_start(struct amdgpu_device *adev)
> if (r)
> return r;
> r = sdma_v4_0_rlc_resume(adev);
> - if (r)
> - return r;
>
> - return 0;
> + return r;
> }
>
> /**
> @@ -1158,8 +1156,6 @@ static int sdma_v4_0_hw_init(void *handle)
> sdma_v4_0_init_golden_registers(adev);
>
> r = sdma_v4_0_start(adev);
> - if (r)
> - return r;
>
> return r;
> }
More information about the amd-gfx
mailing list