summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2006-03-11 12:27:22 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-11 18:19:35 +0100
commit16afe814a856e271628c5dfb4abbc318ec6b6f5f (patch)
tree9a5e48fb3674c07b2b9402d81183f8cf35bf1a0d /drivers
parent[PATCH] arcfb: Fix uninitialized value (diff)
downloadlinux-16afe814a856e271628c5dfb4abbc318ec6b6f5f.tar.xz
linux-16afe814a856e271628c5dfb4abbc318ec6b6f5f.zip
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/kyro/STG4000VTG.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/kyro/STG4000VTG.c b/drivers/video/kyro/STG4000VTG.c
index 3690b04190af..bd389709d234 100644
--- a/drivers/video/kyro/STG4000VTG.c
+++ b/drivers/video/kyro/STG4000VTG.c
@@ -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);