drm/i915: Remove unused variable
authorjsg <jsg@openbsd.org>
Wed, 25 Jan 2023 01:56:39 +0000 (01:56 +0000)
committerjsg <jsg@openbsd.org>
Wed, 25 Jan 2023 01:56:39 +0000 (01:56 +0000)
From Nirmoy Das
92c39d6995923103f952c94ba0e9b859e182d2a8 in linux-6.1.y/6.1.8
2293a73ad4f3b6c37c06713ff1b67659d92ef43d in mainline linux

sys/dev/pci/drm/i915/i915_driver.c

index 85a3258..0b387e2 100644 (file)
@@ -1222,8 +1222,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();