Skip to contentSkip to conversation

staging: xgifb: ensure braces on all arms of if stmt

PATCH New Nicholas Sim 1 participant 1 message Mar 23, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: xgifb: ensure braces on all arms of if stmt

Added braces on else arm of if statement where if arm already has braces as suggested for clarity in Documentation/CodingStyle

---
 drivers/staging/xgifb/vb_setmode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/xgifb/vb_setmode.c +2 -1
index f97c77d..14230c2 100644
@@ -3450,8 +3450,9 @@ static void XGI_SetGroup2(unsigned short ModeNo, unsigned short ModeIdIndex,
 			if (!(pVBInfo->TVInfo &
 			    (TVSetYPbPr525p | TVSetYPbPr750p)))
 				tempbx >>= 1;
-		} else
+		} else {
 			tempbx >>= 1;
+		}
 	}
 
 	tempbx -= 2;
Signature · 1 line
2.4.3