diff options
author | Aaro Koskinen | 2013-05-29 22:59:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-05-30 13:55:49 +0200 |
commit | b0b4a8a126db9317b6e701af334ff114a224a9d6 (patch) | |
tree | 2b58ce87036264102ab34aac37205728154c43ac /drivers/staging/xgifb/vb_setmode.c | |
parent | staging: xgifb: XGI_AjustCRT2Rate(): delete IF_DEF_LVDS check (diff) | |
download | kernel-qcow2-linux-b0b4a8a126db9317b6e701af334ff114a224a9d6.tar.gz kernel-qcow2-linux-b0b4a8a126db9317b6e701af334ff114a224a9d6.tar.xz kernel-qcow2-linux-b0b4a8a126db9317b6e701af334ff114a224a9d6.zip |
staging: xgifb: XGI_GetRatePtrCRT2(): delete IF_DEF_LVDS check
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>
Diffstat (limited to 'drivers/staging/xgifb/vb_setmode.c')
-rw-r--r-- | drivers/staging/xgifb/vb_setmode.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index bf8bf63250fb..fa85ab1b75ef 100644 --- a/drivers/staging/xgifb/vb_setmode.c +++ b/drivers/staging/xgifb/vb_setmode.c @@ -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; } } |