drm/amd/display: remove unused variable available
authorTom Rix <trix@redhat.com>
Wed, 8 Mar 2023 14:10:57 +0000 (09:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Mar 2023 19:06:04 +0000 (14:06 -0500)
commit5922231bd346da717ceee8d14b4361fd595e58ac
tree9b0a10107e3eaeed352af0abb0126b80071f5af9
parent3a906a0cb150a872a23f6204449d3f8b50693837
drm/amd/display: remove unused variable available

With gcc and W=1, there is this error
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_dpia_bw.c:297:13: error:
  variable ‘available’ set but not used [-Werror=unused-but-set-variable]
  297 |         int available = 0;
      |             ^~~~~~~~~

Since available is unused, remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia_bw.c