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

video: fbdev: aty: Delete unused variable in radeon_monitor

Fix warning about variable that is asssigned a value but never used.
The variable was indeed never used so delete it.

Keep the call to radeon_probe_i2c_connector() as it may have
side-effects. It is unlikely but I could not verify that is was safe to
drop the call.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linux-fbdev@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20201128224114.1033617-5-sam@ravnborg.org

+1 -3
+1 -3
drivers/video/fbdev/aty/radeon_monitor.c
··· 488 488 #if defined(DEBUG) && defined(CONFIG_FB_RADEON_I2C) 489 489 { 490 490 u8 *EDIDs[4] = { NULL, NULL, NULL, NULL }; 491 - int mon_types[4] = {MT_NONE, MT_NONE, MT_NONE, MT_NONE}; 492 491 int i; 493 492 494 493 for (i = 0; i < 4; i++) 495 - mon_types[i] = radeon_probe_i2c_connector(rinfo, 496 - i+1, &EDIDs[i]); 494 + radeon_probe_i2c_connector(rinfo, i + 1, &EDIDs[i]); 497 495 } 498 496 #endif /* DEBUG */ 499 497 /*