Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1363773 > unrolled thread
| Started by | Nicholas Sim <nicholassimws@gmail.com> |
|---|---|
| First post | 2016-03-24 00:10 +0100 |
| Last post | 2016-03-24 00:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] staging: xgifb: ensure braces on all arms of if stmt Nicholas Sim <nicholassimws@gmail.com> - 2016-03-24 00:10 +0100
| From | Nicholas Sim <nicholassimws@gmail.com> |
|---|---|
| Date | 2016-03-24 00:10 +0100 |
| Subject | [PATCH] staging: xgifb: ensure braces on all arms of if stmt |
| Message-ID | <rg04x-28c-1@gated-at.bofh.it> |
Added braces on else arm of if statement where if arm already has braces
as suggested for clarity in Documentation/CodingStyle
Signed-off-by: Nicholas Sim <nicholassimws@gmail.com>
---
drivers/staging/xgifb/vb_setmode.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
index f97c77d..14230c2 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -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;
--
2.4.3
Back to top | Article view | linux.kernel
csiph-web