]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/tegra: hdmi: sor: Fix error: variable ‘j’ set but not used
authorBrahmajit Das <listout@listout.xyz>
Mon, 1 Sep 2025 21:20:20 +0000 (02:50 +0530)
committerThierry Reding <treding@nvidia.com>
Thu, 11 Sep 2025 16:56:28 +0000 (18:56 +0200)
commit1beee8d0c263b3e239c8d6616e4f8bb700bed658
tree5294e39ceca3ae358fcd5efbf04441137bc95867
parentd2624d90a0b776db468e889cb079ff1d3edaccf3
drm/tegra: hdmi: sor: Fix error: variable ‘j’ set but not used

The variable j is set, however never used in or outside the loop, thus
resulting in dead code.
Building with GCC 16 results in a build error due to
-Werror=unused-but-set-variable= enabled by default.
This patch clean up the dead code and fixes the build error.

Example build log:
drivers/gpu/drm/tegra/sor.c:1867:19: error: variable ‘j’ set but not used [-Werror=unused-but-set-variable=]
 1867 |         size_t i, j;
      |                   ^

Signed-off-by: Brahmajit Das <listout@listout.xyz>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250901212020.3757519-1-listout@listout.xyz
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/sor.c