staging: xgifb: delete redundant chip type check
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 10 Sep 2012 21:15:17 +0000 (00:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:48:16 +0000 (15:48 -0700)
All chip type values are covered by (chip >= XG20 || chip >= XG40).

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

index 3cba143..e300645 100644 (file)
@@ -2619,9 +2619,7 @@ static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
 
        temp = xgifb_reg_get(pVBInfo->P3d4, 0x38);
 
-       if (((HwDeviceExtension->jChipType >= XG20) ||
-            (HwDeviceExtension->jChipType >= XG40)) &&
-           (pVBInfo->IF_DEF_LVDS == 0)) {
+       if (pVBInfo->IF_DEF_LVDS == 0) {
                if (pVBInfo->VBType &
                    (VB_SIS302B |
                     VB_SIS301LV |