Skip to content

Commit

Permalink
[PATCH] kyrofb: Fix uninitialized value
Browse files Browse the repository at this point in the history
Initialize Variable 'count' in DisableVGA to zero.

Coverity Bug 874

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 604cc99 commit 16afe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/kyro/STG4000VTG.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
void DisableVGA(volatile STG4000REG __iomem *pSTGReg)
{
u32 tmp;
volatile u32 count, i;
volatile u32 count = 0, i;

/* Reset the VGA registers */
tmp = STG_READ_REG(SoftwareReset);
Expand Down

0 comments on commit 16afe81

Please sign in to comment.