aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorKimberly Brown <kimbrownkd@gmail.com>2018-10-28 14:11:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-05 14:16:33 +0100
commite00c51d0c07f171580fa2fb3e75b0e31c2b74bc4 (patch)
tree7348a49b0fad2ffa68e557774bdc9c14735b5798 /drivers/staging/xgifb
parentstaging: mt7621-dma: Add braces around else branches (diff)
downloadlinux-dev-e00c51d0c07f171580fa2fb3e75b0e31c2b74bc4.tar.xz
linux-dev-e00c51d0c07f171580fa2fb3e75b0e31c2b74bc4.zip
staging: xgifb: vb_setmode: fix multiple line dereference
Fix multiple line dereference by adding a new line and adjusting indentations. This change improves code readability. Issue found by checkpatch. Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com> 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 1fa0dc66406e..62b45a30e0f1 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -656,8 +656,9 @@ static void XGI_UpdateXG21CRTC(unsigned short ModeNo,
(XGI330_RefIndex[RefreshRateTableIndex].Ext_CRT1CRTC ==
RES640x480x60))
index = 12;
- else if (ModeNo == 0x2E && (XGI330_RefIndex[RefreshRateTableIndex].
- Ext_CRT1CRTC == RES640x480x72))
+ else if (ModeNo == 0x2E &&
+ (XGI330_RefIndex[RefreshRateTableIndex].Ext_CRT1CRTC ==
+ RES640x480x72))
index = 13;
else if (ModeNo == 0x2F)
index = 14;