History

drm/amdgpu: Remove accidentally added small unused hunk.

Commit 8f66090b7bb7 ("drm/amdgpu: Remove references to struct drm_device.pdev") accidentally adds an initialization of adev, which isn't used anywhere. This caused a compiler warning on the unused variable, remove it.

Maarten Lankhorst committed 5 years ago

Commit c31eb101 parent e5829511 file · +0 −1Browse files

Unified · Split

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c+0−1
@@ -926,7 +926,6 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev, · 925 unmodified lines
926 struct drm_file *file_priv,926 struct drm_file *file_priv,
927 const struct drm_mode_fb_cmd2 *mode_cmd)927 const struct drm_mode_fb_cmd2 *mode_cmd)
928{928{
929 struct amdgpu_device *adev = drm_to_adev(dev);
930 struct drm_gem_object *obj;929 struct drm_gem_object *obj;
931 struct amdgpu_framebuffer *amdgpu_fb;930 struct amdgpu_framebuffer *amdgpu_fb;
932 int ret;931 int ret;