]> err.no Git - linux-2.6/commitdiff
[PATCH] kyrofb: Fix uninitialized value
authorAntonino A. Daplas <adaplas@gmail.com>
Sat, 11 Mar 2006 11:27:22 +0000 (03:27 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 11 Mar 2006 17:19:35 +0000 (09:19 -0800)
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>
drivers/video/kyro/STG4000VTG.c

index 3690b04190afbde7e88a687cde55c6232964e991..bd389709d23403d9b2d85950f267c78143838487 100644 (file)
@@ -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);