[PATCH 1/3] drm/amdgpu: Remove redundant itermediate return val in sdma_v4_0.c

Alex Deucher alexdeucher at gmail.com
Mon Apr 17 17:57:32 UTC 2017


On Mon, Apr 17, 2017 at 8:05 AM, Rex Zhu <Rex.Zhu at amd.com> wrote:
> Change-Id: I27aca4ad0f06f01390c92ed7a520e9c89e99b13d
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>

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

> ---
>  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;
>  }
> --
> 1.9.1
>
> _______________________________________________
> 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