]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] neofb: Fix uninitialized value
authorAntonino A. Daplas <adaplas@gmail.com>
Sat, 11 Mar 2006 11:27:20 +0000 (03:27 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 11 Mar 2006 17:19:35 +0000 (09:19 -0800)
Remove insignificant and unitialized variable "waitcycles" from neo2200_sync.

Coverity Bug 895

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/neofb.c

index a2e201dc40f774a57976d1b41201cfb9aa574031..b961d5601bd90a7242830a33b1fbe6e12f830de3 100644 (file)
@@ -486,10 +486,8 @@ static void vgaHWRestore(const struct fb_info *info,
 static inline int neo2200_sync(struct fb_info *info)
 {
        struct neofb_par *par = info->par;
-       int waitcycles;
 
-       while (readl(&par->neo2200->bltStat) & 1)
-               waitcycles++;
+       while (readl(&par->neo2200->bltStat) & 1);
        return 0;
 }