Staging: xgifb: vb_setmode.c: Fix checkpath warning
Fix the following checkpatch.pl warning: 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
6cc0c259d0
commit
8b0a4c1067
|
@ -221,8 +221,7 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeIdIndex,
|
|||
|
||||
for (; XGI330_RefIndex[RefreshRateTableIndex + (*i)].ModeID ==
|
||||
tempbx; (*i)--) {
|
||||
infoflag = XGI330_RefIndex[RefreshRateTableIndex + (*i)].
|
||||
Ext_InfoFlag;
|
||||
infoflag = XGI330_RefIndex[RefreshRateTableIndex + (*i)].Ext_InfoFlag;
|
||||
if (infoflag & tempax)
|
||||
return 1;
|
||||
|
||||
|
@ -231,8 +230,7 @@ static unsigned char XGI_AjustCRT2Rate(unsigned short ModeIdIndex,
|
|||
}
|
||||
|
||||
for ((*i) = 0;; (*i)++) {
|
||||
infoflag = XGI330_RefIndex[RefreshRateTableIndex + (*i)].
|
||||
Ext_InfoFlag;
|
||||
infoflag = XGI330_RefIndex[RefreshRateTableIndex + (*i)].Ext_InfoFlag;
|
||||
if (XGI330_RefIndex[RefreshRateTableIndex + (*i)].ModeID
|
||||
!= tempbx) {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue