drm: silence variable 'conn' set but not used
authorQian Cai <cai@lca.pw>
Mon, 22 Jul 2019 19:14:46 +0000 (15:14 -0400)
committerSean Paul <seanpaul@chromium.org>
Mon, 22 Jul 2019 20:04:53 +0000 (16:04 -0400)
commitbbb6fc43f131f77fcb7ae8081f6d7c51396a2120
tree52f2ad7c578d8ccd7914abcc4263ab85ceaa5522
parent0036bc73ccbe7e600a3468bf8e8879b122252274
drm: silence variable 'conn' set but not used

The "struct drm_connector" iteration cursor from
"for_each_new_connector_in_state" is never used in atomic_remove_fb()
which generates a compilation warning,

drivers/gpu/drm/drm_framebuffer.c: In function 'atomic_remove_fb':
drivers/gpu/drm/drm_framebuffer.c:838:24: warning: variable 'conn' set
but not used [-Wunused-but-set-variable]

Silence it by marking "conn" __maybe_unused.

Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1563822886-13570-1-git-send-email-cai@lca.pw
drivers/gpu/drm/drm_framebuffer.c