Skip to content

Commit

Permalink
[PATCH] neofb: Fix uninitialized value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Mar 11, 2006
1 parent 1a4520b commit 6af7ffc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/video/neofb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6af7ffc

Please sign in to comment.