]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: Remove unused variable
authorNirmoy Das <nirmoy.das@intel.com>
Wed, 18 Jan 2023 17:06:24 +0000 (18:06 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 18 Jan 2023 18:33:15 +0000 (13:33 -0500)
Removed unused i915 var.

Fixes: a273e95721e9 ("drm/i915: Allow switching away via vga-switcheroo if uninitialized")
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230118170624.9326-1-nirmoy.das@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_driver.c

index b5700681432db5f893ba8cbec151397ac1176252..61c38fc734cfb65c2d2790dd0b86e5f8875ce2e3 100644 (file)
@@ -1069,8 +1069,6 @@ static int i915_driver_open(struct drm_device *dev, struct drm_file *file)
  */
 static void i915_driver_lastclose(struct drm_device *dev)
 {
-       struct drm_i915_private *i915 = to_i915(dev);
-
        intel_fbdev_restore_mode(dev);
 
        vga_switcheroo_process_delayed_switch();