kyrofb: Fix uninitialized value
PATCH 3/18 kyrofb: Fix uninitialized value
Initialize Variable 'count' in DisableVGA to zero.
Coverity Bug 874
Signed-off-by Antonino Daplas <[email protected]>
---
drivers/video/kyro/STG4000VTG.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/kyro/STG4000VTG.c +1 -1
@@ -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);
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642