staging: xgifb: XGI_DisableBridge(): delete redundant checks
Delete some redudant checks. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
056b5405fa
commit
41fc5f031c
|
@ -4553,13 +4553,8 @@ static void XGI_DisableBridge(struct xgifb_video_info *xgifb_info,
|
||||||
if (!(pVBInfo->VBInfo &
|
if (!(pVBInfo->VBInfo &
|
||||||
(DisableCRT2Display | SetSimuScanMode))) {
|
(DisableCRT2Display | SetSimuScanMode))) {
|
||||||
if (pVBInfo->VBInfo & XGI_SetCRT2ToLCDA) {
|
if (pVBInfo->VBInfo & XGI_SetCRT2ToLCDA) {
|
||||||
if (pVBInfo->VBInfo & SetCRT2ToDualEdge) {
|
if (pVBInfo->VBInfo & SetCRT2ToDualEdge)
|
||||||
tempah = 0x7F; /* Disable Channel A */
|
tempah = 0x7F; /* Disable Channel A */
|
||||||
if (!(pVBInfo->VBInfo &
|
|
||||||
XGI_SetCRT2ToLCDA))
|
|
||||||
/* Disable Channel B */
|
|
||||||
tempah = 0xBF;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4578,11 +4573,9 @@ static void XGI_DisableBridge(struct xgifb_video_info *xgifb_info,
|
||||||
SetSimuScanMode))
|
SetSimuScanMode))
|
||||||
XGI_DisplayOff(xgifb_info, HwDeviceExtension, pVBInfo);
|
XGI_DisplayOff(xgifb_info, HwDeviceExtension, pVBInfo);
|
||||||
|
|
||||||
if (pVBInfo->VBInfo & XGI_SetCRT2ToLCDA) {
|
if (pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)
|
||||||
if (pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)
|
/* Power down */
|
||||||
/* Power down */
|
xgifb_reg_and(pVBInfo->Part1Port, 0x1e, 0xdf);
|
||||||
xgifb_reg_and(pVBInfo->Part1Port, 0x1e, 0xdf);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* disable TV as primary VGA swap */
|
/* disable TV as primary VGA swap */
|
||||||
xgifb_reg_and(pVBInfo->P3c4, 0x32, 0xdf);
|
xgifb_reg_and(pVBInfo->P3c4, 0x32, 0xdf);
|
||||||
|
|
Loading…
Reference in New Issue