Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: remove set but not used variable 'radeon_connector'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/radeon/radeon_display.c: In function radeon_crtc_scaling_mode_fixup:
drivers/gpu/drm/radeon/radeon_display.c:1685:27: warning: variable radeon_connector set but not used [-Wunused-but-set-variable]

It is not used since commit 377bd8a98d7d ("drm/radeon:
use a fetch function to get the edid")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

zhengbin and committed by
Alex Deucher
5952c489 3f47f030

-2
-2
drivers/gpu/drm/radeon/radeon_display.c
··· 1687 1687 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); 1688 1688 struct radeon_encoder *radeon_encoder; 1689 1689 struct drm_connector *connector; 1690 - struct radeon_connector *radeon_connector; 1691 1690 bool first = true; 1692 1691 u32 src_v = 1, dst_v = 1; 1693 1692 u32 src_h = 1, dst_h = 1; ··· 1699 1700 continue; 1700 1701 radeon_encoder = to_radeon_encoder(encoder); 1701 1702 connector = radeon_get_connector_for_encoder(encoder); 1702 - radeon_connector = to_radeon_connector(connector); 1703 1703 1704 1704 if (first) { 1705 1705 /* set scaling */