Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1402578

Re: [PATCH 1/5] drm/amd/amdgpu : Remove unused variable

From Alex Deucher <alexdeucher@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/5] drm/amd/amdgpu : Remove unused variable
Date 2016-05-17 22:40 +0200
Message-ID <rzTWx-T4-3@gated-at.bofh.it> (permalink)
References <rzJNv-2Rf-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 17, 2016 at 5:42 AM, Muhammad Falak R Wani
<falakreyaz@gmail.com> wrote:
> Remove unused variable 'ret', and directly return 0.
>
> Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>

Applied the series.  Thanks!

Alex

> ---
>  drivers/gpu/drm/amd/amdgpu/cik_ih.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
> index f2f14fe..e78c9bd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c
> +++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
> @@ -103,7 +103,6 @@ static void cik_ih_disable_interrupts(struct amdgpu_device *adev)
>   */
>  static int cik_ih_irq_init(struct amdgpu_device *adev)
>  {
> -       int ret = 0;
>         int rb_bufsz;
>         u32 interrupt_cntl, ih_cntl, ih_rb_cntl;
>         u64 wptr_off;
> @@ -156,7 +155,7 @@ static int cik_ih_irq_init(struct amdgpu_device *adev)
>         /* enable irqs */
>         cik_ih_enable_interrupts(adev);
>
> -       return ret;
> +       return 0;
>  }
>
>  /**
> --
> 1.9.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/5] drm/amd/amdgpu : Remove unused variable Muhammad Falak R Wani <falakreyaz@gmail.com> - 2016-05-17 11:50 +0200
  [PATCH 5/5] drm/amd/amdgpu : Remove unused variable Muhammad Falak R Wani <falakreyaz@gmail.com> - 2016-05-17 11:50 +0200
    RE: [PATCH 5/5] drm/amd/amdgpu : Remove unused variable "Zhang, Jerry" <Jerry.Zhang@amd.com> - 2016-05-18 02:40 +0200
  Re: [PATCH 1/5] drm/amd/amdgpu : Remove unused variable Alex Deucher <alexdeucher@gmail.com> - 2016-05-17 22:40 +0200

csiph-web