unsigned char XGISetModeNew(struct xgi_hw_device_info *HwDeviceExtension,
                        unsigned short ModeNo)
 {
-       unsigned short ModeIdIndex = 0;
+       unsigned short ModeIdIndex;
        /* unsigned char *pVBInfo->FBAddr = HwDeviceExtension->pjVideoMemoryAddress; */
        struct vb_device_info VBINF;
        struct vb_device_info *pVBInfo = &VBINF;
 unsigned char XGI_SearchModeID(unsigned short ModeNo,
                unsigned short *ModeIdIndex, struct vb_device_info *pVBInfo)
 {
-
-#ifdef LINUX /* chiawen for linux solution */
-
        if (ModeNo <= 5)
                ModeNo |= 1;
        if (ModeNo <= 0x13) {
                }
        }
 
-#endif
-
        return 1;
 }
 
                struct xgi_hw_device_info *HwDeviceExtension,
                struct vb_device_info *pVBInfo)
 {
-       unsigned short tempbx, ModeIdIndex = 0, RefreshRateTableIndex;
+       unsigned short tempbx, ModeIdIndex, RefreshRateTableIndex;
 
        tempbx = pVBInfo->VBInfo;
        pVBInfo->SetFlag |= ProgrammingCRT2;