diff options
author | Aastha Gupta <aastha.gupta4104@gmail.com> | 2017-09-14 17:38:50 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-18 12:00:07 +0200 |
commit | bb879fa3e33cc205220016b95b81214875e7aecb (patch) | |
tree | 8396db3e55b46f7891ccac1a9c596ae03c90ec7a /drivers/staging/xgifb | |
parent | aabdabad35d3c01f977084221afe09cab5dfa8af (diff) | |
download | linux-stable-bb879fa3e33cc205220016b95b81214875e7aecb.tar.gz linux-stable-bb879fa3e33cc205220016b95b81214875e7aecb.tar.bz2 linux-stable-bb879fa3e33cc205220016b95b81214875e7aecb.zip |
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>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r-- | drivers/staging/xgifb/vb_setmode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index cea128bede52..d55ffa61bc40 100644 --- a/drivers/staging/xgifb/vb_setmode.c +++ b/drivers/staging/xgifb/vb_setmode.c @@ -5479,8 +5479,9 @@ unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info, ModeIdIndex)) return 0; - pVBInfo->ModeType = XGI330_EModeIDTable[ModeIdIndex]. - Ext_ModeFlag & ModeTypeMask; + pVBInfo->ModeType = + XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag + & ModeTypeMask; pVBInfo->SetFlag = 0; pVBInfo->VBInfo = DisableCRT2Display; |