Skip to contentSkip to conversation

staging: xgifb: add braces around if statement

PATCH New Gargi Sharma 1 participant 1 message Feb 16, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: xgifb: add braces around if statement

add braces around if statment to fix the checkpatch issue, braces {} should be used on all arms of this statement.

---
Changes in v2:
move the closing brace for if statement on the same line as the else statement.
`

---
 drivers/staging/xgifb/XGI_main_26.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/xgifb/XGI_main_26.c +2 -2
index 6930f7e..6895235 100644
@@ -178,9 +178,9 @@ static int XGIfb_mode_rate_to_ddata(struct vb_device_info *XGI_Pr,
 		*sync |= FB_SYNC_HOR_HIGH_ACT;
 
 	*vmode = FB_VMODE_NONINTERLACED;
-	if (XGI330_RefIndex[RefreshRateTableIndex].Ext_InfoFlag & 0x0080)
+	if (XGI330_RefIndex[RefreshRateTableIndex].Ext_InfoFlag & 0x0080) {
 		*vmode = FB_VMODE_INTERLACED;
-	else {
+	} else {
 		j = 0;
 		while (XGI330_EModeIDTable[j].Ext_ModeID != 0xff) {
 			if (XGI330_EModeIDTable[j].Ext_ModeID ==
Signature · 1 line
2.7.4