From: Antonino A. Daplas Date: Sat, 11 Mar 2006 11:27:20 +0000 (-0800) Subject: [PATCH] neofb: Fix uninitialized value X-Git-Tag: v2.6.16-rc6~17 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6af7ffc414828cda880a4e99e20f4f07880281e7;p=linux-2.6-omap-h63xx.git [PATCH] neofb: Fix uninitialized value Remove insignificant and unitialized variable "waitcycles" from neo2200_sync. Coverity Bug 895 Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/neofb.c b/drivers/video/neofb.c index a2e201dc40f..b961d5601bd 100644 --- a/drivers/video/neofb.c +++ b/drivers/video/neofb.c @@ -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; }