staging: xgifb: delete IF_DEF_ExpLink
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 10 Sep 2012 21:15:14 +0000 (00:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:48:15 +0000 (15:48 -0700)
Delete a flag which is never set.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_setmode.c
drivers/staging/xgifb/vb_struct.h

index 6c1dd0492583b1f4f001d7b37a3b2bad7b0dd987..dc1e371ca382015464df9cdfce680540b9d7619e 100644 (file)
@@ -2960,20 +2960,6 @@ static unsigned char XGI_GetLCDInfo(unsigned short ModeNo,
                        tempbx |= SetLCDtoNonExpanding;
        }
 
-       if (pVBInfo->IF_DEF_ExpLink == 1) {
-               if (modeflag & HalfDCLK) {
-                       if (!(tempbx & SetLCDtoNonExpanding)) {
-                               tempbx |= XGI_EnableLVDSDDA;
-                       } else {
-                               if (pVBInfo->LCDResInfo == Panel_1024x768) {
-                                       if (resinfo == 4) {/* 512x384 */
-                                               tempbx |= XGI_EnableLVDSDDA;
-                                       }
-                               }
-                       }
-               }
-       }
-
        if (pVBInfo->VBInfo & SetInSlaveMode) {
                if (pVBInfo->VBInfo & SetNotSimuMode)
                        tempbx |= XGI_LCDVESATiming;
index e2fa1ff26353881dac67e28b2a83f5c3f2510ec6..043d0fbc472a26465e651afbaa8c1473a8b0a4e4 100644 (file)
@@ -169,7 +169,6 @@ struct vb_device_info {
        unsigned short   IF_DEF_LVDS, IF_DEF_TRUMPION, IF_DEF_DSTN;
        unsigned short   IF_DEF_CRT2Monitor;
        unsigned short   IF_DEF_LCDA, IF_DEF_YPbPr;
-       unsigned short   IF_DEF_ExpLink;
        unsigned short   IF_DEF_HiVision;
        unsigned short   LCDResInfo, LCDTypeInfo, VBType;/*301b*/
        unsigned short   VBInfo, TVInfo, LCDInfo;