[PATCH] kyrofb: Fix uninitialized value
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>
This commit is contained in:
parent
604cc999fd
commit
16afe814a8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue