Skip to contentSkip to conversation

staging:xgifb:vb_setmode.c Braces single statement

PATCH New Walt Feasel 1 participant 1 message Nov 14, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 20/20 staging:xgifb:vb_setmode.c Braces single statement

Make suggested modification from checkpatch in reference to WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/xgifb/vb_setmode.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/xgifb/vb_setmode.c +2 -4
index 8e12ec3..415d193 100644
@@ -1679,13 +1679,11 @@ static unsigned char XGI_GetVCLKPtr(unsigned short RefreshRateTableIndex,
 				return tempal;
 			}
 
-			if (pVBInfo->TVInfo & TVSetYPbPr750p) {
+			if (pVBInfo->TVInfo & TVSetYPbPr750p)
 				return XGI_YPbPr750pVCLK;
-			}
 
-			if (pVBInfo->TVInfo & TVSetYPbPr525p) {
+			if (pVBInfo->TVInfo & TVSetYPbPr525p)
 				return YPbPr525pVCLK;
-			}
 
 			tempal = NTSC1024VCLK;
 
Signature · 1 line
2.1.4