drm: Reduce scope of 'state' variable
authorDawid Kurek <dawikur@gmail.com>
Thu, 15 Jun 2017 17:45:56 +0000 (19:45 +0200)
committerSean Paul <seanpaul@chromium.org>
Thu, 15 Jun 2017 18:26:02 +0000 (14:26 -0400)
commitac7c748317f515f426f48e72964c71142506f7a6
treec4a29089c7d52d71413cf5bad1eed113c3563bff
parentae9d04214372a521e3746556eb2f76007d9edb73
drm: Reduce scope of 'state' variable

Smaller scope reduces visibility of variable and makes usage of
uninitialized variable less possible.

Changes in v2:
- separate declaration and initialization
Changes in v3:
- add missing signed-off-by tag

Signed-off-by: Dawid Kurek <dawikur@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170615174556.GA8872@gmail.com
drivers/gpu/drm/drm_atomic.c