]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Feb 2026 15:31:32 +0000 (16:31 +0100)
commitefdb9c8ca3cfb132b29d68d506e3bb5dee3b9c83
treea0714df1d92409e2c3896e58c0c462b3eefd9e73
parent4b71ad7676564a94ec5f7d18298f51e8ae53db73
drm/tegra: hdmi: sor: Fix error: variable ‘j’ set but not used

[ Upstream commit 1beee8d0c263b3e239c8d6616e4f8bb700bed658 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/sor.c