drm: Move drm_mode_setcrtc() local re-init to failure path
authorSean Paul <seanpaul@chromium.org>
Thu, 29 Nov 2018 15:04:15 +0000 (10:04 -0500)
committerSean Paul <seanpaul@chromium.org>
Thu, 29 Nov 2018 15:48:30 +0000 (10:48 -0500)
commitc232e9f41b136c141df9938024e521191a7b910d
treeceb3b819137bfa2ede83b93b5e66bdb2ef7ea831
parentaa394b0dd68cb00c483e151dcd84713d4d517ed1
drm: Move drm_mode_setcrtc() local re-init to failure path

Instead of always re-initializing the variables we need to clean up on
out, move the re-initialization into the branch that goes back to retry
label.

This is a lateral move right now, but will allow us to pull out the
modeset locking into common code. I kept this change separate to make
things easier to review.

Changes in v2:
- None

Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20181129150423.239081-2-sean@poorly.run
drivers/gpu/drm/drm_crtc.c