summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sis
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2015-05-29 14:28:09 +0300
committerJani Nikula <jani.nikula@intel.com>2015-06-22 11:56:17 +0300
commit9044a81d1be632251b7ee97ce9a0bf2a97989be6 (patch)
treefb000d16b9280c218692f4dcd494183dc4d2bb1d /drivers/gpu/drm/sis
parent4ed9fb371ccdfe465bd3bbb69e4cad5243e6c4e2 (diff)
downloadtalos-obmc-linux-9044a81d1be632251b7ee97ce9a0bf2a97989be6.tar.gz
talos-obmc-linux-9044a81d1be632251b7ee97ce9a0bf2a97989be6.zip
drm/i915: Silence compiler warning
Silence the following -Wmaybe-uninitialized warnings and make the code more clear. drivers/gpu/drm/i915/intel_display.c: In function ‘__intel_set_mode’: drivers/gpu/drm/i915/intel_display.c:11844:14: warning: ‘crtc_state’ may be used uninitialized in this function [-Wmaybe-uninitialized] return state->mode_changed || state->active_changed; ^ drivers/gpu/drm/i915/intel_display.c:11854:25: note: ‘crtc_state’ was declared here struct drm_crtc_state *crtc_state; ^ drivers/gpu/drm/i915/intel_display.c:11868:6: warning: ‘crtc’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (crtc != intel_encoder->base.crtc) ^ drivers/gpu/drm/i915/intel_display.c:11853:19: note: ‘crtc’ was declared here struct drm_crtc *crtc; Reported-by: Chris Wilson <chris@chris-wilson.co.uk> Suggested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/sis')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud