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.
Unified · Split
| @@ -926,7 +926,6 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev, · 925 unmodified lines | ||
| 926 | 926 | struct drm_file *file_priv, |
| 927 | 927 | const struct drm_mode_fb_cmd2 *mode_cmd) |
| 928 | 928 | { |
| 929 | − struct amdgpu_device *adev = drm_to_adev(dev); | |
| 930 | 929 | struct drm_gem_object *obj; |
| 931 | 930 | struct amdgpu_framebuffer *amdgpu_fb; |
| 932 | 931 | int ret; |