Skip to contentSkip to conversation

fbdev.c: fix a warning "unused variable"

PATCH New Guillaume Thouvenin 1 participant 1 message Jul 30, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev.c: fix a warning "unused variable"

Hello,

When compiling file driver/video/riva/fbdev.c in Linux kernel 2.6.8-rc2-mm1, there are warnings:

CC [M] drivers/video/riva/fbdev.o /home/guill/projects/elsa/linux-2.6.8-rc2-mm1/drivers/video/riva/fbdev.c: In function `riva_get_EDID':
/home/guill/projects/elsa/linux-2.6.8-rc2-mm1/drivers/video/riva/fbdev.c:1867: warning: unused variable par' /home/guill/projects/elsa/linux-2.6.8-rc2-mm1/drivers/video/riva/fbdev.c:1868: warning: unused variable i'

Here is a trivial patch to remove those warning.

Hope this help

Guillaume

fbdev.c renamed from fbdev.c.orig +2 -0
@@ -1864,8 +1864,10 @@ static void riva_update_default_var(stru
 
 static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev)
 {
+#ifdef CONFIG_FB_RIVA_I2C
 	struct riva_par *par;
 	int i;
+#endif
 
 	NVTRACE_ENTER();
 #ifdef CONFIG_PPC_OF