diff mbox series

drm/amdgpu: Remove unused variable

Message ID 20210115150201.34256-1-nirmoy.das@amd.com (mailing list archive)
State New, archived
Headers show
Series drm/amdgpu: Remove unused variable | expand

Commit Message

Nirmoy Das Jan. 15, 2021, 3:02 p.m. UTC
Remove unused adev variable

Fixes:   8f66090b7bb7 ("drm/amdgpu: Remove references to struct drm_device.pdev")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Alex Deucher Jan. 15, 2021, 3:08 p.m. UTC | #1
On Fri, Jan 15, 2021 at 10:02 AM Nirmoy Das <nirmoy.das@amd.com> wrote:
>
> Remove unused adev variable
>
> Fixes:   8f66090b7bb7 ("drm/amdgpu: Remove references to struct drm_device.pdev")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>

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

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
> index 0150a51b65ef..f764803c53a4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
> @@ -926,7 +926,6 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev,
>                                        struct drm_file *file_priv,
>                                        const struct drm_mode_fb_cmd2 *mode_cmd)
>  {
> -       struct amdgpu_device *adev = drm_to_adev(dev);
>         struct drm_gem_object *obj;
>         struct amdgpu_framebuffer *amdgpu_fb;
>         int ret;
> --
> 2.29.2
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox series

Patch

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index 0150a51b65ef..f764803c53a4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -926,7 +926,6 @@  amdgpu_display_user_framebuffer_create(struct drm_device *dev,
 				       struct drm_file *file_priv,
 				       const struct drm_mode_fb_cmd2 *mode_cmd)
 {
-	struct amdgpu_device *adev = drm_to_adev(dev);
 	struct drm_gem_object *obj;
 	struct amdgpu_framebuffer *amdgpu_fb;
 	int ret;