[PATCH] neofb: Fix uninitialized value
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>
This commit is contained in:
parent
1a4520bea6
commit
6af7ffc414
|
@ -486,10 +486,8 @@ static void vgaHWRestore(const struct fb_info *info,
|
||||||
static inline int neo2200_sync(struct fb_info *info)
|
static inline int neo2200_sync(struct fb_info *info)
|
||||||
{
|
{
|
||||||
struct neofb_par *par = info->par;
|
struct neofb_par *par = info->par;
|
||||||
int waitcycles;
|
|
||||||
|
|
||||||
while (readl(&par->neo2200->bltStat) & 1)
|
while (readl(&par->neo2200->bltStat) & 1);
|
||||||
waitcycles++;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue