drm/nouveau/kms/nv50: hide unused variables
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Sep 2023 15:59:24 +0000 (17:59 +0200)
committerDanilo Krummrich <dakr@redhat.com>
Wed, 27 Sep 2023 15:54:37 +0000 (17:54 +0200)
commita4ead6e37e3290cff399e2598d75e98777b69b37
tree6625f5fbb53e5ee13e51134ffd251adcac3d85a6
parent24c614c3d60c41743b1a5e588a4019c1d30c0faa
drm/nouveau/kms/nv50: hide unused variables

After a recent change, two variables are only used in an #ifdef:

drivers/gpu/drm/nouveau/dispnv50/disp.c: In function 'nv50_sor_atomic_disable':
drivers/gpu/drm/nouveau/dispnv50/disp.c:1569:13: error: unused variable 'ret' [-Werror=unused-variable]
 1569 |         int ret;
      |             ^~~
drivers/gpu/drm/nouveau/dispnv50/disp.c:1568:28: error: unused variable 'aux' [-Werror=unused-variable]
 1568 |         struct drm_dp_aux *aux = &nv_connector->aux;
      |                            ^~~

Move them into the same conditional block, along with the nv_connector variable
that becomes unused during that fix.

Fixes: 757033808c95 ("drm/nouveau/kms/nv50-: fixup sink D3 before tearing down link")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230925155930.677620-1-arnd@kernel.org
drivers/gpu/drm/nouveau/dispnv50/disp.c