drm/atomic-helper: Remove redundant local var old_crtc_state in disable_outputs
authorLiu Ying <gnuiyl@gmail.com>
Mon, 18 Jan 2016 03:36:35 +0000 (11:36 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 18 Jan 2016 06:56:15 +0000 (07:56 +0100)
commitc6c5c7fa7f3ec7d35541e9e4c6feb4ccd6cca7c9
tree0da3c118b9b8182207bf0bbb8a790b6a14f5309a
parent2deafc7e163be631183bdfc066e2f636e7818e00
drm/atomic-helper: Remove redundant local var old_crtc_state in disable_outputs

One of the two local variables old_crtc_state is redundantly defined in the
function disable_outputs().  It has only a scope partway through the block
for_each_connector_in_state.  So, let's remove it and use the one which
has the scope within the function disable_outputs().

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1453088195-2564-1-git-send-email-gnuiyl@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c