staging: xgifb: fix multiple line dereference

This patch fixes the checkpatch.pl warning:

WARNING: Avoid multiple line dereference - prefer'XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag'

Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Aastha Gupta 2017-09-14 17:38:50 +05:30 committed by Greg Kroah-Hartman
parent aabdabad35
commit bb879fa3e3
1 changed files with 3 additions and 2 deletions

View File

@ -5479,8 +5479,9 @@ unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info,
ModeIdIndex)) ModeIdIndex))
return 0; return 0;
pVBInfo->ModeType = XGI330_EModeIDTable[ModeIdIndex]. pVBInfo->ModeType =
Ext_ModeFlag & ModeTypeMask; XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag
& ModeTypeMask;
pVBInfo->SetFlag = 0; pVBInfo->SetFlag = 0;
pVBInfo->VBInfo = DisableCRT2Display; pVBInfo->VBInfo = DisableCRT2Display;