]> git.baikalelectronics.ru Git - kernel.git/commit
i915: fix compiler warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 31 Oct 2013 22:28:23 +0000 (15:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 31 Oct 2013 22:28:23 +0000 (15:28 -0700)
commit015b63a72044bd51741672e8ed3e3946964fd998
treeff74c78318505b8f7346d8693117b9dfa00989ab
parentf9a5ac17f0bcfcecd8c10d7d9aff452a213cdff7
i915: fix compiler warning

The last i915 drm update brought with it this annoying warning

  drivers/gpu/drm/i915/intel_crt.c: In function ‘intel_crt_get_config’:
  drivers/gpu/drm/i915/intel_crt.c:110:21: warning: unused variable ‘dev’ [-Wunused-variable]
    struct drm_device *dev = encoder->base.dev;
                       ^

introduced by commit 39319fe03026 ("drm/i915: Add HSW CRT output readout
support").

Remove the offending pointless variable.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/intel_crt.c