staging: xgifb: fix multiple line dereference
authorAastha Gupta <aastha.gupta4104@gmail.com>
Thu, 14 Sep 2017 12:08:50 +0000 (17:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 10:00:07 +0000 (12:00 +0200)
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>
drivers/staging/xgifb/vb_setmode.c

index cea128b..d55ffa6 100644 (file)
@@ -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;