summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2015-04-21 14:13:07 (GMT)
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-08 11:04:02 (GMT)
commit9eb45f228f24a2d1d98cb526e149aa18ba1f5ef5 (patch)
tree4c19b406f32b8ce56d82a74d99247bc72490c641 /drivers/gpu/drm/i915/intel_ringbuffer.h
parent054518ddff87565022bf1eb1578fcb00e42cc847 (diff)
downloadlinux-9eb45f228f24a2d1d98cb526e149aa18ba1f5ef5.tar.xz
drm/i915: Simplify error handling in __intel_set_mode()
The remaining parts of the failure path could only be reached if the allocation of crtc_state_copy would fail. In that case, there is nothing to undo, so just get rid of the label for error handling and return an error code immediately. We also always allocate a pipe_config, even if the pipe is being disabled, so the remaining part of what was the error/done case can be simplified a little too. v2: Ignore return value from drm_plane_helper_update(). (Ander) Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
0 files changed, 0 insertions, 0 deletions