staging: xgifb: vb_setmode: fix multiple line dereference
authorKimberly Brown <kimbrownkd@gmail.com>
Sun, 28 Oct 2018 18:11:52 +0000 (14:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2018 13:16:33 +0000 (14:16 +0100)
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>
drivers/staging/xgifb/vb_setmode.c

index 1fa0dc66406e68e0a52b3370a502b81f1da8e782..62b45a30e0f1ebca8c5b57f7536503611e1799e3 100644 (file)
@@ -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;