Staging: xgifb: vb_setmode.c: Fix checkpath warnings
Fix the following checkpatch.pl warnings: 1: Avoid multiple line dereference - prefer 'XGI330_RefIndex[RefreshRateTableIndex+i].ModeID' 2: Avoid multiple line dereference - prefer 'XGI330_RefIndex[RefreshRateTableIndex+(*i)].Ext_InfoFlag' Signed-off-by: Manoj Sawai <mas@iitkgp.ac.in> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8b0a4c1067
commit
22171e328f
|
@ -5090,8 +5090,7 @@ unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
|
|||
|
||||
i = 0;
|
||||
do {
|
||||
if (XGI330_RefIndex[RefreshRateTableIndex + i].
|
||||
ModeID != ModeNo)
|
||||
if (XGI330_RefIndex[RefreshRateTableIndex + i].ModeID != ModeNo)
|
||||
break;
|
||||
temp = XGI330_RefIndex[RefreshRateTableIndex + i].Ext_InfoFlag;
|
||||
temp &= ModeTypeMask;
|
||||
|
@ -5103,8 +5102,7 @@ unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
|
|||
} while (index != 0xFFFF);
|
||||
if (!(pVBInfo->VBInfo & SetCRT2ToRAMDAC)) {
|
||||
if (pVBInfo->VBInfo & SetInSlaveMode) {
|
||||
temp = XGI330_RefIndex[RefreshRateTableIndex + i - 1].
|
||||
Ext_InfoFlag;
|
||||
temp = XGI330_RefIndex[RefreshRateTableIndex + i - 1].Ext_InfoFlag;
|
||||
if (temp & InterlaceMode)
|
||||
i++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue