aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorAastha Gupta <aastha.gupta4104@gmail.com>2017-09-14 17:38:50 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-18 12:00:07 +0200
commitbb879fa3e33cc205220016b95b81214875e7aecb (patch)
tree8396db3e55b46f7891ccac1a9c596ae03c90ec7a /drivers/staging/xgifb
parentStaging: ccree: Use kcalloc instead of kzalloc (diff)
downloadlinux-dev-bb879fa3e33cc205220016b95b81214875e7aecb.tar.xz
linux-dev-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.c5
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;