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

From: Guillaume Thouvenin (guillaume.thouvenin_at_bull.net)
Date: 07/30/04

  • Next message: Arjan van de Ven: "Re: symlinks follow 8 or 5?"
    Date:	Fri, 30 Jul 2004 09:06:54 +0200
    To: ajoshi@shell.unixbox.com
    
    
    

    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

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Arjan van de Ven: "Re: symlinks follow 8 or 5?"

    Relevant Pages