• Linus Torvalds's avatar
    i915: fix compiler warning · 0baab4fd
    Linus Torvalds authored
    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 7195a50b ("drm/i915: Add HSW CRT output readout
    support").
    
    Remove the offending pointless variable.
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    0baab4fd
intel_crt.c 22.7 KB