]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: xgifb: remove extra braces from if stmt (single branch)
authorNicholas Sim <nicholassimws@gmail.com>
Wed, 23 Mar 2016 23:02:59 +0000 (23:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Remove braces from one branch of if statement where both branches only
have a single line of code, as suggested in Documentation/CodingStyle

Signed-off-by: Nicholas Sim <nicholassimws@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_setmode.c

index 14230c293145718ff99b6f9cbaacbec52cf23b4e..40939c86ab7c86c21ab4939b194040075b772a11 100644 (file)
@@ -3840,9 +3840,9 @@ static void XGI_SetLCDRegs(unsigned short ModeIdIndex,
                if (pVBInfo->VGAVDE == 525) {
                        if (pVBInfo->VBType & (VB_SIS301B | VB_SIS302B
                                        | VB_SIS301LV | VB_SIS302LV
-                                       | VB_XGI301C)) {
+                                       | VB_XGI301C))
                                temp = 0xC6;
-                       else
+                       else
                                temp = 0xC4;
 
                        xgifb_reg_set(pVBInfo->Part2Port, 0x2f, temp);
@@ -3852,9 +3852,9 @@ static void XGI_SetLCDRegs(unsigned short ModeIdIndex,
                if (pVBInfo->VGAVDE == 420) {
                        if (pVBInfo->VBType & (VB_SIS301B | VB_SIS302B
                                        | VB_SIS301LV | VB_SIS302LV
-                                       | VB_XGI301C)) {
+                                       | VB_XGI301C))
                                temp = 0x4F;
-                       else
+                       else
                                temp = 0x4E;
                        xgifb_reg_set(pVBInfo->Part2Port, 0x2f, temp);
                }