diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-09-07 01:34:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-06 23:18:18 -0700 |
commit | d6835e8417554bfff40ba9603299f60de66fdf0a (patch) | |
tree | 9b6d43d51db64b81cf22208c564343cfd58d94e5 | |
parent | b654f878baf121d13972988c853ca93e740dae07 (diff) | |
download | blackbird-op-linux-d6835e8417554bfff40ba9603299f60de66fdf0a.tar.gz blackbird-op-linux-d6835e8417554bfff40ba9603299f60de66fdf0a.zip |
staging: xgifb: Initialize uninitialized variables
Current patch solves compilation warnings in staging/xgifb for using
possibly uninitialized variables.
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/xgifb/vb_setmode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index c4db2fc6dda8..720a592c9e63 100644 --- a/drivers/staging/xgifb/vb_setmode.c +++ b/drivers/staging/xgifb/vb_setmode.c @@ -376,7 +376,7 @@ void InitTo330Pointer(unsigned char ChipType, struct vb_device_info *pVBInfo) unsigned char XGISetModeNew(struct xgi_hw_device_info *HwDeviceExtension, unsigned short ModeNo) { - unsigned short ModeIdIndex; + unsigned short ModeIdIndex = 0; /* unsigned char *pVBInfo->FBAddr = HwDeviceExtension->pjVideoMemoryAddress; */ struct vb_device_info VBINF; struct vb_device_info *pVBInfo = &VBINF; @@ -3834,7 +3834,7 @@ unsigned char XGI_SetCRT2Group301(unsigned short ModeNo, struct xgi_hw_device_info *HwDeviceExtension, struct vb_device_info *pVBInfo) { - unsigned short tempbx, ModeIdIndex, RefreshRateTableIndex; + unsigned short tempbx, ModeIdIndex = 0, RefreshRateTableIndex; tempbx = pVBInfo->VBInfo; pVBInfo->SetFlag |= ProgrammingCRT2; |