Commit aaeb5e7f authored by Nicholas Sim's avatar Nicholas Sim Committed by Greg Kroah-Hartman

staging: xgifb: remove extra braces from if stmt (single branch)

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: default avatarNicholas Sim <nicholassimws@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 26b69432
...@@ -3840,9 +3840,9 @@ static void XGI_SetLCDRegs(unsigned short ModeIdIndex, ...@@ -3840,9 +3840,9 @@ static void XGI_SetLCDRegs(unsigned short ModeIdIndex,
if (pVBInfo->VGAVDE == 525) { if (pVBInfo->VGAVDE == 525) {
if (pVBInfo->VBType & (VB_SIS301B | VB_SIS302B if (pVBInfo->VBType & (VB_SIS301B | VB_SIS302B
| VB_SIS301LV | VB_SIS302LV | VB_SIS301LV | VB_SIS302LV
| VB_XGI301C)) { | VB_XGI301C))
temp = 0xC6; temp = 0xC6;
} else else
temp = 0xC4; temp = 0xC4;
xgifb_reg_set(pVBInfo->Part2Port, 0x2f, temp); xgifb_reg_set(pVBInfo->Part2Port, 0x2f, temp);
...@@ -3852,9 +3852,9 @@ static void XGI_SetLCDRegs(unsigned short ModeIdIndex, ...@@ -3852,9 +3852,9 @@ static void XGI_SetLCDRegs(unsigned short ModeIdIndex,
if (pVBInfo->VGAVDE == 420) { if (pVBInfo->VGAVDE == 420) {
if (pVBInfo->VBType & (VB_SIS301B | VB_SIS302B if (pVBInfo->VBType & (VB_SIS301B | VB_SIS302B
| VB_SIS301LV | VB_SIS302LV | VB_SIS301LV | VB_SIS302LV
| VB_XGI301C)) { | VB_XGI301C))
temp = 0x4F; temp = 0x4F;
} else else
temp = 0x4E; temp = 0x4E;
xgifb_reg_set(pVBInfo->Part2Port, 0x2f, temp); xgifb_reg_set(pVBInfo->Part2Port, 0x2f, temp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment