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)
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 7195a50b5c7e ("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

index db59bb9fbe23f75b6be9e182937b4ff6588cfafe..10d1de5bce6ff7a35921fa19d1327863b85ab86d 100644 (file)
@@ -107,8 +107,6 @@ static unsigned int intel_crt_get_flags(struct intel_encoder *encoder)
 static void intel_crt_get_config(struct intel_encoder *encoder,
                                 struct intel_crtc_config *pipe_config)
 {
-       struct drm_device *dev = encoder->base.dev;
-
        pipe_config->adjusted_mode.flags |= intel_crt_get_flags(encoder);
 }