]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
staging: xgifb: XGI_GetRatePtrCRT2(): delete IF_DEF_LVDS check
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 29 May 2013 20:59:04 +0000 (23:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:55:49 +0000 (20:55 +0900)
IF_DEF_LVDS cannot be set if ProgrammingCRT2 flag is set, so remove the
check to simplify the code.

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 bf8bf63250fb3070b46508693539f9d0c3e77daa..fa85ab1b75efd8afbe742a376f6a5071c65c0dce 100644 (file)
@@ -5290,15 +5290,10 @@ unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
 
        if (pVBInfo->SetFlag & ProgrammingCRT2) {
                if (pVBInfo->VBInfo & (SetCRT2ToLCD | XGI_SetCRT2ToLCDA)) {
-                       if (pVBInfo->IF_DEF_LVDS == 0) {
-                               temp = LCDARefreshIndex[
-                                       pVBInfo->LCDResInfo & 0x07];
+                       temp = LCDARefreshIndex[pVBInfo->LCDResInfo & 0x07];
 
-                               if (index > temp)
-                                       index = temp;
-                       } else {
-                               index = 0;
-                       }
+                       if (index > temp)
+                               index = temp;
                }
        }