[Patch] fbdev.c: fix a warning "unused variable"

From: Guillaume Thouvenin
Date: Fri Jul 30 2004 - 02:08:26 EST


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.orig 2004-07-30 08:43:09.017841384 +0200
+++ fbdev.c 2004-07-30 08:44:00.615997272 +0200
@@ -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