summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLiu Ying <gnuiyl@gmail.com>2016-01-18 06:36:35 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-01-18 09:56:15 +0300
commitc6c5c7fa7f3ec7d35541e9e4c6feb4ccd6cca7c9 (patch)
tree0da3c118b9b8182207bf0bbb8a790b6a14f5309a /drivers
parent2deafc7e163be631183bdfc066e2f636e7818e00 (diff)
downloadlinux-c6c5c7fa7f3ec7d35541e9e4c6feb4ccd6cca7c9.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/drm_atomic_helper.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c
index 57cccd68ca52..b9d8b5393955 100644
--- a/drivers/gpu/drm/drm_atomic_helper.c
+++ b/drivers/gpu/drm/drm_atomic_helper.c
@@ -617,7 +617,6 @@ disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state)
for_each_connector_in_state(old_state, connector, old_conn_state, i) {
const struct drm_encoder_helper_funcs *funcs;
struct drm_encoder *encoder;
- struct drm_crtc_state *old_crtc_state;
/* Shut down everything that's in the changeset and currently
* still on. So need to check the old, saved state. */